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