Table of Contents

Class LabelClient

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

httpClient HttpClient
uri Uri

Properties

EventLabels

Associated EventLabels.

public PaginatedEventLabelClient EventLabels { get; }

Property Value

PaginatedEventLabelClient

LocationLabels

Associated LocationLabels.

public PaginatedLocationLabelClient LocationLabels { get; }

Property Value

PaginatedLocationLabelClient

Methods

AddCustomParameter(string, string)

Adds a custom query parameter to the request URI.

public LabelClient AddCustomParameter(string parameter, string value)

Parameters

parameter string

The name of the query parameter.

value string

The value of the query parameter.

Returns

LabelClient

The current LabelClient instance.

ClearParameters()

Removes the entire query string from the request URI.

public LabelClient ClearParameters()

Returns

LabelClient

The current LabelClient instance.

GetAsync(CancellationToken)

Fetches the Label resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A 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.