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