Table of Contents

Class OptionClient

Namespace
Crews.PlanningCenter.Api.CheckIns.V2024_09_03
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

httpClient HttpClient
uri Uri

Properties

CheckIns

Associated CheckIns.

public PaginatedCheckInClient CheckIns { get; }

Property Value

PaginatedCheckInClient

Label

Associated Label.

public LabelClient Label { get; }

Property Value

LabelClient

Methods

GetAsync(CancellationToken)

Fetches the Option resource asynchronously.

public Task<OptionResponse> GetAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A 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()

Returns

OptionClient