Class LocationLabelClient
- Namespace
- Crews.PlanningCenter.Api.CheckIns.V2024_09_03
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the LocationLabel resource.
public class LocationLabelClient : SingletonResourceClient<LocationLabel, LocationLabelResource, LocationLabelResponse>
- Inheritance
-
LocationLabelClient
- Inherited Members
Constructors
LocationLabelClient(HttpClient, Uri)
Client for interacting with the LocationLabel resource.
public LocationLabelClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
Label
Associated Label.
public LabelClient Label { get; }
Property Value
Location
Associated Location.
public LocationClient Location { get; }
Property Value
Methods
GetAsync(CancellationToken)
Fetches the LocationLabel resource asynchronously.
public Task<LocationLabelResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<LocationLabelResponse>
A task representing the asynchronous operation, containing the LocationLabel resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeLabel()
Include related Label resources in the response.
public LocationLabelClient IncludeLabel()
Returns
IncludeLocation()
Include related Location resources in the response.
public LocationLabelClient IncludeLocation()