Class EpisodeResourceClient
- Namespace
- Crews.PlanningCenter.Api.Publishing.V2024_03_25
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the EpisodeResource resource.
public class EpisodeResourceClient : SingletonResourceClient<EpisodeResource, EpisodeResourceResource, EpisodeResourceResponse>
- Inheritance
-
EpisodeResourceClient
- Inherited Members
Constructors
EpisodeResourceClient(HttpClient, Uri)
Client for interacting with the EpisodeResource resource.
public EpisodeResourceClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public EpisodeResourceClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- EpisodeResourceClient
The current EpisodeResourceClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public EpisodeResourceClient ClearParameters()
Returns
- EpisodeResourceClient
The current EpisodeResourceClient instance.
DeleteAsync(CancellationToken)
Deletes the EpisodeResource 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 EpisodeResource resource asynchronously.
public Task<EpisodeResourceResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<EpisodeResourceResponse>
A task representing the asynchronous operation, containing the EpisodeResource resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
PatchAsync(EpisodeResource, CancellationToken)
Updates an existing EpisodeResource resource asynchronously.
public Task<EpisodeResourceResponse> PatchAsync(EpisodeResource resource, CancellationToken cancellationToken = default)
Parameters
resourceEpisodeResourceThe resource data to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<EpisodeResourceResponse>
A task representing the asynchronous operation, containing the updated EpisodeResource resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
PatchAsync(JsonApiDocument<EpisodeResourceResource>, CancellationToken)
Updates an existing EpisodeResource resource asynchronously.
public Task<EpisodeResourceResponse> PatchAsync(JsonApiDocument<EpisodeResourceResource> document, CancellationToken cancellationToken = default)
Parameters
documentJsonApiDocument<EpisodeResourceResource>The JSON:API document to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<EpisodeResourceResponse>
A task representing the asynchronous operation, containing the updated EpisodeResource resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.