Table of Contents

Class EventClient

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

Client for interacting with the Event resource.

public class EventClient : SingletonResourceClient<Event, EventResource, EventResponse>
Inheritance
EventClient
Inherited Members

Constructors

EventClient(HttpClient, Uri)

Client for interacting with the Event resource.

public EventClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Properties

AttendanceTypes

Associated AttendanceTypes.

public PaginatedAttendanceTypeClient AttendanceTypes { get; }

Property Value

PaginatedAttendanceTypeClient

CheckIns

Associated CheckIns.

public PaginatedCheckInClient CheckIns { get; }

Property Value

PaginatedCheckInClient

CurrentEventTimes

Associated CurrentEventTimes.

public PaginatedEventTimeClient CurrentEventTimes { get; }

Property Value

PaginatedEventTimeClient

EventLabels

Associated EventLabels.

public PaginatedEventLabelClient EventLabels { get; }

Property Value

PaginatedEventLabelClient

EventPeriods

Associated EventPeriods.

public PaginatedEventPeriodClient EventPeriods { get; }

Property Value

PaginatedEventPeriodClient

Associated IntegrationLinks.

public PaginatedIntegrationLinkClient IntegrationLinks { get; }

Property Value

PaginatedIntegrationLinkClient

Locations

Associated Locations.

public PaginatedLocationClient Locations { get; }

Property Value

PaginatedLocationClient

PersonEvents

Associated PersonEvents.

public PaginatedPersonEventClient PersonEvents { get; }

Property Value

PaginatedPersonEventClient

Methods

AddCustomParameter(string, string)

Adds a custom query parameter to the request URI.

public EventClient AddCustomParameter(string parameter, string value)

Parameters

parameter string

The name of the query parameter.

value string

The value of the query parameter.

Returns

EventClient

The current EventClient instance.

ClearParameters()

Removes the entire query string from the request URI.

public EventClient ClearParameters()

Returns

EventClient

The current EventClient instance.

GetAsync(CancellationToken)

Fetches the Event resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<EventResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

IncludeAttendanceTypes()

Include related AttendanceTypes resources in the response.

public EventClient IncludeAttendanceTypes()

Returns

EventClient