Class OptionClient
- Namespace
- Crews.PlanningCenter.Api.CheckIns.V2023_04_05
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the Option resource.
public class OptionClient : SingletonResourceClient<Option, OptionResource, OptionResponse>
- Inheritance
-
OptionClient
- Inherited Members
Constructors
OptionClient(HttpClient, Uri)
Client for interacting with the Option resource.
public OptionClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
CheckIns
Associated CheckIns.
public PaginatedCheckInClient CheckIns { get; }
Property Value
Label
Associated Label.
public LabelClient Label { get; }
Property Value
Methods
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public OptionClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- OptionClient
The current OptionClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public OptionClient ClearParameters()
Returns
- OptionClient
The current OptionClient instance.
GetAsync(CancellationToken)
Fetches the Option resource asynchronously.
public Task<OptionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<OptionResponse>
A task representing the asynchronous operation, containing the Option resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeLabel()
Include related Label resources in the response.
public OptionClient IncludeLabel()