Class ChannelDefaultEpisodeResourceClient
- Namespace
- Crews.PlanningCenter.Api.Publishing.V2024_03_25
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the ChannelDefaultEpisodeResource resource.
public class ChannelDefaultEpisodeResourceClient : SingletonResourceClient<ChannelDefaultEpisodeResource, ChannelDefaultEpisodeResourceResource, ChannelDefaultEpisodeResourceResponse>
- Inheritance
-
SingletonResourceClient<ChannelDefaultEpisodeResource, ChannelDefaultEpisodeResourceResource, ChannelDefaultEpisodeResourceResponse>ChannelDefaultEpisodeResourceClient
- Inherited Members
Constructors
ChannelDefaultEpisodeResourceClient(HttpClient, Uri)
Client for interacting with the ChannelDefaultEpisodeResource resource.
public ChannelDefaultEpisodeResourceClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public ChannelDefaultEpisodeResourceClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- ChannelDefaultEpisodeResourceClient
The current ChannelDefaultEpisodeResourceClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public ChannelDefaultEpisodeResourceClient ClearParameters()
Returns
- ChannelDefaultEpisodeResourceClient
The current ChannelDefaultEpisodeResourceClient instance.
GetAsync(CancellationToken)
Fetches the ChannelDefaultEpisodeResource resource asynchronously.
public Task<ChannelDefaultEpisodeResourceResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<ChannelDefaultEpisodeResourceResponse>
A task representing the asynchronous operation, containing the ChannelDefaultEpisodeResource resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.