Table of Contents

Class EventLabelClient

Namespace
Crews.PlanningCenter.Api.CheckIns.V2018_08_01
Assembly
Crews.PlanningCenter.Api.dll

Client for interacting with the EventLabel resource.

public class EventLabelClient : SingletonResourceClient<EventLabel, EventLabelResource, EventLabelResponse>
Inheritance
EventLabelClient
Inherited Members

Constructors

EventLabelClient(HttpClient, Uri)

Client for interacting with the EventLabel resource.

public EventLabelClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Properties

Event

Associated Event.

public EventClient Event { get; }

Property Value

EventClient

Label

Associated Label.

public LabelClient Label { get; }

Property Value

LabelClient

Methods

GetAsync(CancellationToken)

Fetches the EventLabel resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<EventLabelResponse>

A task representing the asynchronous operation, containing the EventLabel resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

IncludeEvent()

Include related Event resources in the response.

public EventLabelClient IncludeEvent()

Returns

EventLabelClient

IncludeLabel()

Include related Label resources in the response.

public EventLabelClient IncludeLabel()

Returns

EventLabelClient