Table of Contents

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

httpClient HttpClient
uri Uri

Methods

GetAsync(CancellationToken)

Fetches the BlockoutDate resource asynchronously.

public Task<BlockoutDateResponse> GetAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A 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.