Class OptionClient
- Namespace
- Crews.PlanningCenter.Api.CheckIns.V2018_08_01
- 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
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()