Table of Contents

Class PersonClient

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

Client for interacting with the Person resource.

public class PersonClient : SingletonResourceClient<Person, PersonResource, PersonResponse>
Inheritance
PersonClient
Inherited Members

Constructors

PersonClient(HttpClient, Uri)

Client for interacting with the Person resource.

public PersonClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Properties

CheckIns

Associated CheckIns.

public PaginatedCheckInClient CheckIns { get; }

Property Value

PaginatedCheckInClient

Organization

Associated Organization.

public OrganizationClient Organization { get; }

Property Value

OrganizationClient

Passes

Associated Passes.

public PaginatedPassClient Passes { get; }

Property Value

PaginatedPassClient

PersonEvents

Associated PersonEvents.

public PaginatedPersonEventClient PersonEvents { get; }

Property Value

PaginatedPersonEventClient

Methods

GetAsync(CancellationToken)

Fetches the Person resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<PersonResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

IncludeOrganization()

Include related Organization resources in the response.

public PersonClient IncludeOrganization()

Returns

PersonClient