Class SeriesClient
- Namespace
- Crews.PlanningCenter.Api.Publishing.V2024_03_25
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the Series resource.
public class SeriesClient : SingletonResourceClient<Series, SeriesResource, SeriesResponse>
- Inheritance
-
SeriesClient
- Inherited Members
Constructors
SeriesClient(HttpClient, Uri)
Client for interacting with the Series resource.
public SeriesClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
Channel
Associated Channel.
public ChannelClient Channel { get; }
Property Value
Methods
DeleteAsync(CancellationToken)
Deletes the Series 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 Series resource asynchronously.
public Task<SeriesResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<SeriesResponse>
A task representing the asynchronous operation, containing the Series resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeChannel()
Include related Channel resources in the response.
public SeriesClient IncludeChannel()
Returns
PatchAsync(Series, CancellationToken)
Updates an existing Series resource asynchronously.
public Task<SeriesResponse> PatchAsync(Series resource, CancellationToken cancellationToken = default)
Parameters
resourceSeriesThe resource data to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<SeriesResponse>
A task representing the asynchronous operation, containing the updated Series resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
PatchAsync(JsonApiDocument<SeriesResource>, CancellationToken)
Updates an existing Series resource asynchronously.
public Task<SeriesResponse> PatchAsync(JsonApiDocument<SeriesResource> document, CancellationToken cancellationToken = default)
Parameters
documentJsonApiDocument<SeriesResource>The JSON:API document to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<SeriesResponse>
A task representing the asynchronous operation, containing the updated Series resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.