Class PersonEventClient
- Namespace
- Crews.PlanningCenter.Api.CheckIns.V2024_09_03
- 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
httpClientHttpClienturiUri
Properties
Event
Associated Event.
public EventClient Event { get; }
Property Value
FirstCheckIn
Associated FirstCheckIn.
public CheckInClient FirstCheckIn { get; }
Property Value
LastCheckIn
Associated LastCheckIn.
public CheckInClient LastCheckIn { get; }
Property Value
Person
Associated Person.
public PersonClient Person { get; }
Property Value
Methods
GetAsync(CancellationToken)
Fetches the PersonEvent resource asynchronously.
public Task<PersonEventResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA 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
IncludeFirstCheckIn()
Include related FirstCheckIn resources in the response.
public PersonEventClient IncludeFirstCheckIn()
Returns
IncludeLastCheckIn()
Include related LastCheckIn resources in the response.
public PersonEventClient IncludeLastCheckIn()
Returns
IncludePerson()
Include related Person resources in the response.
public PersonEventClient IncludePerson()