Class EventClient
- Namespace
- Crews.PlanningCenter.Api.CheckIns.V2018_08_01
- 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
httpClientHttpClienturiUri
Properties
AttendanceTypes
Associated AttendanceTypes.
public PaginatedAttendanceTypeClient AttendanceTypes { get; }
Property Value
CheckIns
Associated CheckIns.
public PaginatedCheckInClient CheckIns { get; }
Property Value
CurrentEventTimes
Associated CurrentEventTimes.
public PaginatedEventTimeClient CurrentEventTimes { get; }
Property Value
EventLabels
Associated EventLabels.
public PaginatedEventLabelClient EventLabels { get; }
Property Value
EventPeriods
Associated EventPeriods.
public PaginatedEventPeriodClient EventPeriods { get; }
Property Value
IntegrationLinks
Associated IntegrationLinks.
public PaginatedIntegrationLinkClient IntegrationLinks { get; }
Property Value
Locations
Associated Locations.
public PaginatedLocationClient Locations { get; }
Property Value
PersonEvents
Associated PersonEvents.
public PaginatedPersonEventClient PersonEvents { get; }
Property Value
Methods
GetAsync(CancellationToken)
Fetches the Event resource asynchronously.
public Task<EventResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA 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()