Table of Contents

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

httpClient HttpClient
uri Uri

Properties

Channel

Associated Channel.

public ChannelClient Channel { get; }

Property Value

ChannelClient

Methods

DeleteAsync(CancellationToken)

Deletes the Series resource asynchronously.

public Task DeleteAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A 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

cancellationToken CancellationToken

A 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

SeriesClient

PatchAsync(Series, CancellationToken)

Updates an existing Series resource asynchronously.

public Task<SeriesResponse> PatchAsync(Series resource, CancellationToken cancellationToken = default)

Parameters

resource Series

The resource data to be sent in the patch request.

cancellationToken CancellationToken

A 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

document JsonApiDocument<SeriesResource>

The JSON:API document to be sent in the patch request.

cancellationToken CancellationToken

A 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.