Table of Contents

Class EventPeriodClient

Namespace
Crews.PlanningCenter.Api.CheckIns.V2019_07_17
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

httpClient HttpClient
uri Uri

Properties

CheckIns

Associated CheckIns.

public PaginatedCheckInClient CheckIns { get; }

Property Value

PaginatedCheckInClient

Event

Associated Event.

public EventClient Event { get; }

Property Value

EventClient

EventTimes

Associated EventTimes.

public PaginatedEventTimeClient EventTimes { get; }

Property Value

PaginatedEventTimeClient

LocationEventPeriods

Associated LocationEventPeriods.

public PaginatedLocationEventPeriodClient LocationEventPeriods { get; }

Property Value

PaginatedLocationEventPeriodClient

Methods

GetAsync(CancellationToken)

Fetches the EventPeriod resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A 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

EventPeriodClient

IncludeEventTimes()

Include related EventTimes resources in the response.

public EventPeriodClient IncludeEventTimes()

Returns

EventPeriodClient