Class LabelClient
- Namespace
- Crews.PlanningCenter.Api.CheckIns.V2019_07_17
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the Label resource.
public class LabelClient : SingletonResourceClient<Label, LabelResource, LabelResponse>
- Inheritance
-
LabelClient
- Inherited Members
Constructors
LabelClient(HttpClient, Uri)
Client for interacting with the Label resource.
public LabelClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
EventLabels
Associated EventLabels.
public PaginatedEventLabelClient EventLabels { get; }
Property Value
LocationLabels
Associated LocationLabels.
public PaginatedLocationLabelClient LocationLabels { get; }
Property Value
Methods
GetAsync(CancellationToken)
Fetches the Label resource asynchronously.
public Task<LabelResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<LabelResponse>
A task representing the asynchronous operation, containing the Label resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.