Table of Contents

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

httpClient HttpClient
uri Uri

Methods

DeleteAsync(CancellationToken)

Deletes the EpisodeResource 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 EpisodeResource resource asynchronously.

public Task<EpisodeResourceResponse> GetAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A 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

resource EpisodeResource

The resource data to be sent in the patch request.

cancellationToken CancellationToken

A 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

document JsonApiDocument<EpisodeResourceResource>

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

cancellationToken CancellationToken

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