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