Class CustomSlideClient
- Namespace
- Crews.PlanningCenter.Api.Services.V2018_08_01
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the CustomSlide resource.
public class CustomSlideClient : SingletonResourceClient<CustomSlide, CustomSlideResource, CustomSlideResponse>
- Inheritance
-
CustomSlideClient
- Inherited Members
Constructors
CustomSlideClient(HttpClient, Uri)
Client for interacting with the CustomSlide resource.
public CustomSlideClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
DeleteAsync(CancellationToken)
Deletes the CustomSlide resource asynchronously.
public Task DeleteAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task
A task representing the asynchronous delete operation.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
GetAsync(CancellationToken)
Fetches the CustomSlide resource asynchronously.
public Task<CustomSlideResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<CustomSlideResponse>
A task representing the asynchronous operation, containing the CustomSlide resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
PatchAsync(CustomSlide, CancellationToken)
Updates an existing CustomSlide resource asynchronously.
public Task<CustomSlideResponse> PatchAsync(CustomSlide resource, CancellationToken cancellationToken = default)
Parameters
resourceCustomSlideThe resource data to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<CustomSlideResponse>
A task representing the asynchronous operation, containing the updated CustomSlide resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
PatchAsync(JsonApiDocument<CustomSlideResource>, CancellationToken)
Updates an existing CustomSlide resource asynchronously.
public Task<CustomSlideResponse> PatchAsync(JsonApiDocument<CustomSlideResource> document, CancellationToken cancellationToken = default)
Parameters
documentJsonApiDocument<CustomSlideResource>The JSON:API document to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<CustomSlideResponse>
A task representing the asynchronous operation, containing the updated CustomSlide resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.