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
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public SelectionTypeClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- SelectionTypeClient
The current SelectionTypeClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public SelectionTypeClient ClearParameters()
Returns
- SelectionTypeClient
The current SelectionTypeClient instance.
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.