Table of Contents

Class PersonEventClient

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

Client for interacting with the PersonEvent resource.

public class PersonEventClient : SingletonResourceClient<PersonEvent, PersonEventResource, PersonEventResponse>
Inheritance
PersonEventClient
Inherited Members

Constructors

PersonEventClient(HttpClient, Uri)

Client for interacting with the PersonEvent resource.

public PersonEventClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Properties

Event

Associated Event.

public EventClient Event { get; }

Property Value

EventClient

FirstCheckIn

Associated FirstCheckIn.

public CheckInClient FirstCheckIn { get; }

Property Value

CheckInClient

LastCheckIn

Associated LastCheckIn.

public CheckInClient LastCheckIn { get; }

Property Value

CheckInClient

Person

Associated Person.

public PersonClient Person { get; }

Property Value

PersonClient

Methods

GetAsync(CancellationToken)

Fetches the PersonEvent resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<PersonEventResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

IncludeEvent()

Include related Event resources in the response.

public PersonEventClient IncludeEvent()

Returns

PersonEventClient

IncludeFirstCheckIn()

Include related FirstCheckIn resources in the response.

public PersonEventClient IncludeFirstCheckIn()

Returns

PersonEventClient

IncludeLastCheckIn()

Include related LastCheckIn resources in the response.

public PersonEventClient IncludeLastCheckIn()

Returns

PersonEventClient

IncludePerson()

Include related Person resources in the response.

public PersonEventClient IncludePerson()

Returns

PersonEventClient