Class EventPeriodClient
- Namespace
- Crews.PlanningCenter.Api.CheckIns.V2018_08_01
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the EventPeriod resource.
public class EventPeriodClient : SingletonResourceClient<EventPeriod, EventPeriodResource, EventPeriodResponse>
- Inheritance
-
EventPeriodClient
- Inherited Members
Constructors
EventPeriodClient(HttpClient, Uri)
Client for interacting with the EventPeriod resource.
public EventPeriodClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
CheckIns
Associated CheckIns.
public PaginatedCheckInClient CheckIns { get; }
Property Value
Event
Associated Event.
public EventClient Event { get; }
Property Value
EventTimes
Associated EventTimes.
public PaginatedEventTimeClient EventTimes { get; }
Property Value
LocationEventPeriods
Associated LocationEventPeriods.
public PaginatedLocationEventPeriodClient LocationEventPeriods { get; }
Property Value
Methods
GetAsync(CancellationToken)
Fetches the EventPeriod resource asynchronously.
public Task<EventPeriodResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<EventPeriodResponse>
A task representing the asynchronous operation, containing the EventPeriod resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeEvent()
Include related Event resources in the response.
public EventPeriodClient IncludeEvent()
Returns
IncludeEventTimes()
Include related EventTimes resources in the response.
public EventPeriodClient IncludeEventTimes()