Class EventLabelClient
- Namespace
- Crews.PlanningCenter.Api.CheckIns.V2025_05_28
- 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
httpClientHttpClienturiUri
Properties
Event
Associated Event.
public EventClient Event { get; }
Property Value
Label
Associated Label.
public LabelClient Label { get; }
Property Value
Methods
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public EventLabelClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- EventLabelClient
The current EventLabelClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public EventLabelClient ClearParameters()
Returns
- EventLabelClient
The current EventLabelClient instance.
GetAsync(CancellationToken)
Fetches the EventLabel resource asynchronously.
public Task<EventLabelResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA 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
IncludeLabel()
Include related Label resources in the response.
public EventLabelClient IncludeLabel()