Class EpisodeStatisticsClient
- Namespace
- Crews.PlanningCenter.Api.Publishing.V2024_03_25
- 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
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.