Class BlockoutDateClient
- Namespace
- Crews.PlanningCenter.Api.Services.V2018_11_01
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the BlockoutDate resource.
public class BlockoutDateClient : SingletonResourceClient<BlockoutDate, BlockoutDateResource, BlockoutDateResponse>
- Inheritance
-
BlockoutDateClient
- Inherited Members
Constructors
BlockoutDateClient(HttpClient, Uri)
Client for interacting with the BlockoutDate resource.
public BlockoutDateClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
GetAsync(CancellationToken)
Fetches the BlockoutDate resource asynchronously.
public Task<BlockoutDateResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<BlockoutDateResponse>
A task representing the asynchronous operation, containing the BlockoutDate resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.