Table of Contents

Class PaginatedPersonClient

Namespace
Crews.PlanningCenter.Api.People.V2020_04_06
Assembly
Crews.PlanningCenter.Api.dll

Client for interacting with Person collection resources.

public class PaginatedPersonClient : PaginatedResourceClient<Person, PersonResource, PersonCollectionResponse, PersonResponse>
Inheritance
PaginatedPersonClient
Inherited Members

Constructors

PaginatedPersonClient(HttpClient, Uri)

Client for interacting with Person collection resources.

public PaginatedPersonClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

GetAsync(CancellationToken)

Fetches a paginated list of Person resources asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<PersonCollectionResponse>

A task representing the asynchronous operation, containing a paginated list of Person resources.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

IncludeAddresses()

Include related Addresses resources in the response.

public PersonClient IncludeAddresses()

Returns

PersonClient

IncludeEmails()

Include related Emails resources in the response.

public PersonClient IncludeEmails()

Returns

PersonClient

IncludeFieldData()

Include related FieldData resources in the response.

public PersonClient IncludeFieldData()

Returns

PersonClient

IncludeHouseholds()

Include related Households resources in the response.

public PersonClient IncludeHouseholds()

Returns

PersonClient

IncludeInactiveReason()

Include related InactiveReason resources in the response.

public PersonClient IncludeInactiveReason()

Returns

PersonClient

IncludeMaritalStatus()

Include related MaritalStatus resources in the response.

public PersonClient IncludeMaritalStatus()

Returns

PersonClient

IncludeNamePrefix()

Include related NamePrefix resources in the response.

public PersonClient IncludeNamePrefix()

Returns

PersonClient

IncludeNameSuffix()

Include related NameSuffix resources in the response.

public PersonClient IncludeNameSuffix()

Returns

PersonClient

IncludeOrganization()

Include related Organization resources in the response.

public PersonClient IncludeOrganization()

Returns

PersonClient

IncludePersonApps()

Include related PersonApps resources in the response.

public PersonClient IncludePersonApps()

Returns

PersonClient

IncludePhoneNumbers()

Include related PhoneNumbers resources in the response.

public PersonClient IncludePhoneNumbers()

Returns

PersonClient

IncludePlatformNotifications()

Include related PlatformNotifications resources in the response.

public PersonClient IncludePlatformNotifications()

Returns

PersonClient

IncludePrimaryCampus()

Include related PrimaryCampus resources in the response.

public PersonClient IncludePrimaryCampus()

Returns

PersonClient

IncludeSchool()

Include related School resources in the response.

public PersonClient IncludeSchool()

Returns

PersonClient

IncludeSocialProfiles()

Include related SocialProfiles resources in the response.

public PersonClient IncludeSocialProfiles()

Returns

PersonClient

OrderByAccountingAdministrator()

Sort response items by the AccountingAdministrator attribute.

public PersonClient OrderByAccountingAdministrator()

Returns

PersonClient

OrderByAccountingAdministratorDescending()

Sort response items by the AccountingAdministrator attribute. Use reverse order.

public PersonClient OrderByAccountingAdministratorDescending()

Returns

PersonClient

OrderByAnniversary()

Sort response items by the Anniversary attribute.

public PersonClient OrderByAnniversary()

Returns

PersonClient

OrderByAnniversaryDescending()

Sort response items by the Anniversary attribute. Use reverse order.

public PersonClient OrderByAnniversaryDescending()

Returns

PersonClient

OrderByBirthdate()

Sort response items by the Birthdate attribute.

public PersonClient OrderByBirthdate()

Returns

PersonClient

OrderByBirthdateDescending()

Sort response items by the Birthdate attribute. Use reverse order.

public PersonClient OrderByBirthdateDescending()

Returns

PersonClient

OrderByChild()

Sort response items by the Child attribute.

public PersonClient OrderByChild()

Returns

PersonClient

OrderByChildDescending()

Sort response items by the Child attribute. Use reverse order.

public PersonClient OrderByChildDescending()

Returns

PersonClient

OrderByCreatedAt()

Sort response items by the CreatedAt attribute.

public PersonClient OrderByCreatedAt()

Returns

PersonClient

OrderByCreatedAtDescending()

Sort response items by the CreatedAt attribute. Use reverse order.

public PersonClient OrderByCreatedAtDescending()

Returns

PersonClient

OrderByFirstName()

Sort response items by the FirstName attribute.

public PersonClient OrderByFirstName()

Returns

PersonClient

OrderByFirstNameDescending()

Sort response items by the FirstName attribute. Use reverse order.

public PersonClient OrderByFirstNameDescending()

Returns

PersonClient

OrderByGender()

Sort response items by the Gender attribute.

public PersonClient OrderByGender()

Returns

PersonClient

OrderByGenderDescending()

Sort response items by the Gender attribute. Use reverse order.

public PersonClient OrderByGenderDescending()

Returns

PersonClient

OrderByGivenName()

Sort response items by the GivenName attribute.

public PersonClient OrderByGivenName()

Returns

PersonClient

OrderByGivenNameDescending()

Sort response items by the GivenName attribute. Use reverse order.

public PersonClient OrderByGivenNameDescending()

Returns

PersonClient

OrderByGrade()

Sort response items by the Grade attribute.

public PersonClient OrderByGrade()

Returns

PersonClient

OrderByGradeDescending()

Sort response items by the Grade attribute. Use reverse order.

public PersonClient OrderByGradeDescending()

Returns

PersonClient

OrderByGraduationYear()

Sort response items by the GraduationYear attribute.

public PersonClient OrderByGraduationYear()

Returns

PersonClient

OrderByGraduationYearDescending()

Sort response items by the GraduationYear attribute. Use reverse order.

public PersonClient OrderByGraduationYearDescending()

Returns

PersonClient

OrderByInactivatedAt()

Sort response items by the InactivatedAt attribute.

public PersonClient OrderByInactivatedAt()

Returns

PersonClient

OrderByInactivatedAtDescending()

Sort response items by the InactivatedAt attribute. Use reverse order.

public PersonClient OrderByInactivatedAtDescending()

Returns

PersonClient

OrderByLastName()

Sort response items by the LastName attribute.

public PersonClient OrderByLastName()

Returns

PersonClient

OrderByLastNameDescending()

Sort response items by the LastName attribute. Use reverse order.

public PersonClient OrderByLastNameDescending()

Returns

PersonClient

OrderByMembership()

Sort response items by the Membership attribute.

public PersonClient OrderByMembership()

Returns

PersonClient

OrderByMembershipDescending()

Sort response items by the Membership attribute. Use reverse order.

public PersonClient OrderByMembershipDescending()

Returns

PersonClient

OrderByMiddleName()

Sort response items by the MiddleName attribute.

public PersonClient OrderByMiddleName()

Returns

PersonClient

OrderByMiddleNameDescending()

Sort response items by the MiddleName attribute. Use reverse order.

public PersonClient OrderByMiddleNameDescending()

Returns

PersonClient

OrderByNickname()

Sort response items by the Nickname attribute.

public PersonClient OrderByNickname()

Returns

PersonClient

OrderByNicknameDescending()

Sort response items by the Nickname attribute. Use reverse order.

public PersonClient OrderByNicknameDescending()

Returns

PersonClient

OrderByPeoplePermissions()

Sort response items by the PeoplePermissions attribute.

public PersonClient OrderByPeoplePermissions()

Returns

PersonClient

OrderByPeoplePermissionsDescending()

Sort response items by the PeoplePermissions attribute. Use reverse order.

public PersonClient OrderByPeoplePermissionsDescending()

Returns

PersonClient

OrderByRemoteId()

Sort response items by the RemoteId attribute.

public PersonClient OrderByRemoteId()

Returns

PersonClient

OrderByRemoteIdDescending()

Sort response items by the RemoteId attribute. Use reverse order.

public PersonClient OrderByRemoteIdDescending()

Returns

PersonClient

OrderBySiteAdministrator()

Sort response items by the SiteAdministrator attribute.

public PersonClient OrderBySiteAdministrator()

Returns

PersonClient

OrderBySiteAdministratorDescending()

Sort response items by the SiteAdministrator attribute. Use reverse order.

public PersonClient OrderBySiteAdministratorDescending()

Returns

PersonClient

OrderByStatus()

Sort response items by the Status attribute.

public PersonClient OrderByStatus()

Returns

PersonClient

OrderByStatusDescending()

Sort response items by the Status attribute. Use reverse order.

public PersonClient OrderByStatusDescending()

Returns

PersonClient

OrderByUpdatedAt()

Sort response items by the UpdatedAt attribute.

public PersonClient OrderByUpdatedAt()

Returns

PersonClient

OrderByUpdatedAtDescending()

Sort response items by the UpdatedAt attribute. Use reverse order.

public PersonClient OrderByUpdatedAtDescending()

Returns

PersonClient

PostAsync(Person, CancellationToken)

Creates a new Person resource asynchronously.

public Task<PersonResponse> PostAsync(Person resource, CancellationToken cancellationToken = default)

Parameters

resource Person

The resource data to be sent in the POST request.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<PersonResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

PostAsync(JsonApiDocument<PersonResource>, CancellationToken)

Creates a new Person resource asynchronously.

public Task<PersonResponse> PostAsync(JsonApiDocument<PersonResource> document, CancellationToken cancellationToken = default)

Parameters

document JsonApiDocument<PersonResource>

The JSON:API document to be sent in the POST request.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<PersonResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

WhereAccountingAdministrator(bool)

Query response items by the AccountingAdministrator attribute.

public PersonClient WhereAccountingAdministrator(bool value)

Parameters

value bool

Returns

PersonClient

WhereAnniversary(DateOnly)

Query response items by the Anniversary attribute.

public PersonClient WhereAnniversary(DateOnly value)

Parameters

value DateOnly

Returns

PersonClient

WhereBirthdate(DateOnly)

Query response items by the Birthdate attribute.

public PersonClient WhereBirthdate(DateOnly value)

Parameters

value DateOnly

Returns

PersonClient

WhereChild(bool)

Query response items by the Child attribute.

public PersonClient WhereChild(bool value)

Parameters

value bool

Returns

PersonClient

WhereCreatedAt(DateTime)

Query response items by the CreatedAt attribute.

public PersonClient WhereCreatedAt(DateTime value)

Parameters

value DateTime

Returns

PersonClient

WhereFirstName(string)

Query response items by the FirstName attribute.

public PersonClient WhereFirstName(string value)

Parameters

value string

Returns

PersonClient

WhereGender(string)

Query response items by the Gender attribute.

public PersonClient WhereGender(string value)

Parameters

value string

Returns

PersonClient

WhereGivenName(string)

Query response items by the GivenName attribute.

public PersonClient WhereGivenName(string value)

Parameters

value string

Returns

PersonClient

WhereGrade(int)

Query response items by the Grade attribute.

public PersonClient WhereGrade(int value)

Parameters

value int

Returns

PersonClient

WhereGraduationYear(int)

Query response items by the GraduationYear attribute.

public PersonClient WhereGraduationYear(int value)

Parameters

value int

Returns

PersonClient

WhereId(string)

Query response items by the Id attribute.

public PersonClient WhereId(string value)

Parameters

value string

Returns

PersonClient

WhereInactivatedAt(DateTime)

Query response items by the InactivatedAt attribute.

public PersonClient WhereInactivatedAt(DateTime value)

Parameters

value DateTime

Returns

PersonClient

WhereLastName(string)

Query response items by the LastName attribute.

public PersonClient WhereLastName(string value)

Parameters

value string

Returns

PersonClient

WhereMedicalNotes(string)

Query response items by the MedicalNotes attribute.

public PersonClient WhereMedicalNotes(string value)

Parameters

value string

Returns

PersonClient

WhereMembership(string)

Query response items by the Membership attribute.

public PersonClient WhereMembership(string value)

Parameters

value string

Returns

PersonClient

WhereMfaConfigured(bool)

Query response items by the MfaConfigured attribute.

public PersonClient WhereMfaConfigured(bool value)

Parameters

value bool

Returns

PersonClient

WhereMiddleName(string)

Query response items by the MiddleName attribute.

public PersonClient WhereMiddleName(string value)

Parameters

value string

Returns

PersonClient

WhereNickname(string)

Query response items by the Nickname attribute.

public PersonClient WhereNickname(string value)

Parameters

value string

Returns

PersonClient

WherePeoplePermissions(string)

Query response items by the PeoplePermissions attribute.

public PersonClient WherePeoplePermissions(string value)

Parameters

value string

Returns

PersonClient

WherePrimaryCampusId(int)

Query response items by the PrimaryCampusId attribute.

public PersonClient WherePrimaryCampusId(int value)

Parameters

value int

Returns

PersonClient

WhereRemoteId(int)

Query response items by the RemoteId attribute.

public PersonClient WhereRemoteId(int value)

Parameters

value int

Returns

PersonClient

WhereSearchName(string)

Query response items by the SearchName attribute.

public PersonClient WhereSearchName(string value)

Parameters

value string

Returns

PersonClient

WhereSearchNameOrEmail(string)

Query response items by the SearchNameOrEmail attribute.

public PersonClient WhereSearchNameOrEmail(string value)

Parameters

value string

Returns

PersonClient

WhereSearchNameOrEmailOrPhoneNumber(string)

Query response items by the SearchNameOrEmailOrPhoneNumber attribute.

public PersonClient WhereSearchNameOrEmailOrPhoneNumber(string value)

Parameters

value string

Returns

PersonClient

WhereSearchPhoneNumber(string)

Query response items by the SearchPhoneNumber attribute.

public PersonClient WhereSearchPhoneNumber(string value)

Parameters

value string

Returns

PersonClient

WhereSearchPhoneNumberE164(string)

Query response items by the SearchPhoneNumberE164 attribute.

public PersonClient WhereSearchPhoneNumberE164(string value)

Parameters

value string

Returns

PersonClient

WhereSiteAdministrator(bool)

Query response items by the SiteAdministrator attribute.

public PersonClient WhereSiteAdministrator(bool value)

Parameters

value bool

Returns

PersonClient

WhereStatus(string)

Query response items by the Status attribute.

public PersonClient WhereStatus(string value)

Parameters

value string

Returns

PersonClient

WhereUpdatedAt(DateTime)

Query response items by the UpdatedAt attribute.

public PersonClient WhereUpdatedAt(DateTime value)

Parameters

value DateTime

Returns

PersonClient

WithId(string)

Creates a new instance of a Person client for a specific resource ID.

public PersonClient WithId(string id)

Parameters

id string

The ID of the resource to create a client for.

Returns

PersonClient

A new instance of the resource client for the specified resource ID.