Class BlockoutDateClient
- Namespace
- Crews.PlanningCenter.Api.Services.V2018_08_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
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public BlockoutDateClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- BlockoutDateClient
The current BlockoutDateClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public BlockoutDateClient ClearParameters()
Returns
- BlockoutDateClient
The current BlockoutDateClient instance.
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.