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