Table of Contents

Class LocationLabelClient

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

httpClient HttpClient
uri Uri

Properties

Label

Associated Label.

public LabelClient Label { get; }

Property Value

LabelClient

Location

Associated Location.

public LocationClient Location { get; }

Property Value

LocationClient

Methods

GetAsync(CancellationToken)

Fetches the LocationLabel resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A 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

LocationLabelClient

IncludeLocation()

Include related Location resources in the response.

public LocationLabelClient IncludeLocation()

Returns

LocationLabelClient