Class PersonClient
- Namespace
- Crews.PlanningCenter.Api.People.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
httpClientHttpClienturiUri
Properties
Addresses
Associated Addresses.
public PaginatedAddressClient Addresses { get; }
Property Value
Apps
Associated Apps.
public PaginatedAppClient Apps { get; }
Property Value
ConnectedPeople
Associated ConnectedPeople.
public PaginatedConnectedPersonClient ConnectedPeople { get; }
Property Value
Emails
Associated Emails.
public PaginatedEmailClient Emails { get; }
Property Value
FieldData
Associated FieldData.
public PaginatedFieldDatumClient FieldData { get; }
Property Value
HouseholdMemberships
Associated HouseholdMemberships.
public PaginatedHouseholdMembershipClient HouseholdMemberships { get; }
Property Value
Households
Associated Households.
public PaginatedHouseholdClient Households { get; }
Property Value
InactiveReason
Associated InactiveReason.
public InactiveReasonClient InactiveReason { get; }
Property Value
MaritalStatus
Associated MaritalStatus.
public PaginatedMaritalStatusClient MaritalStatus { get; }
Property Value
MessageGroups
Associated MessageGroups.
public PaginatedMessageGroupClient MessageGroups { get; }
Property Value
Messages
Associated Messages.
public PaginatedMessageClient Messages { get; }
Property Value
NamePrefix
Associated NamePrefix.
public NamePrefixClient NamePrefix { get; }
Property Value
NameSuffix
Associated NameSuffix.
public NameSuffixClient NameSuffix { get; }
Property Value
Notes
Associated Notes.
public PaginatedNoteClient Notes { get; }
Property Value
Organization
Associated Organization.
public OrganizationClient Organization { get; }
Property Value
PersonApps
Associated PersonApps.
public PaginatedPersonAppClient PersonApps { get; }
Property Value
PhoneNumbers
Associated PhoneNumbers.
public PaginatedPhoneNumberClient PhoneNumbers { get; }
Property Value
PlatformNotifications
Associated PlatformNotifications.
public PaginatedPlatformNotificationClient PlatformNotifications { get; }
Property Value
PrimaryCampus
Associated PrimaryCampus.
public PaginatedCampusClient PrimaryCampus { get; }
Property Value
School
Associated School.
public SchoolOptionClient School { get; }
Property Value
SocialProfiles
Associated SocialProfiles.
public PaginatedSocialProfileClient SocialProfiles { get; }
Property Value
WorkflowCards
Associated WorkflowCards.
public PaginatedWorkflowCardClient WorkflowCards { get; }
Property Value
WorkflowShares
Associated WorkflowShares.
public PaginatedWorkflowShareClient WorkflowShares { get; }
Property Value
Methods
DeleteAsync(CancellationToken)
Deletes the Person resource asynchronously.
public Task DeleteAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task
A task representing the asynchronous delete operation.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
GetAsync(CancellationToken)
Fetches the Person resource asynchronously.
public Task<PersonResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA 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.
IncludeAddresses()
Include related Addresses resources in the response.
public PersonClient IncludeAddresses()
Returns
IncludeEmails()
Include related Emails resources in the response.
public PersonClient IncludeEmails()
Returns
IncludeFieldData()
Include related FieldData resources in the response.
public PersonClient IncludeFieldData()
Returns
IncludeHouseholds()
Include related Households resources in the response.
public PersonClient IncludeHouseholds()
Returns
IncludeInactiveReason()
Include related InactiveReason resources in the response.
public PersonClient IncludeInactiveReason()
Returns
IncludeMaritalStatus()
Include related MaritalStatus resources in the response.
public PersonClient IncludeMaritalStatus()
Returns
IncludeNamePrefix()
Include related NamePrefix resources in the response.
public PersonClient IncludeNamePrefix()
Returns
IncludeNameSuffix()
Include related NameSuffix resources in the response.
public PersonClient IncludeNameSuffix()
Returns
IncludeOrganization()
Include related Organization resources in the response.
public PersonClient IncludeOrganization()
Returns
IncludePersonApps()
Include related PersonApps resources in the response.
public PersonClient IncludePersonApps()
Returns
IncludePhoneNumbers()
Include related PhoneNumbers resources in the response.
public PersonClient IncludePhoneNumbers()
Returns
IncludePlatformNotifications()
Include related PlatformNotifications resources in the response.
public PersonClient IncludePlatformNotifications()
Returns
IncludePrimaryCampus()
Include related PrimaryCampus resources in the response.
public PersonClient IncludePrimaryCampus()
Returns
IncludeSchool()
Include related School resources in the response.
public PersonClient IncludeSchool()
Returns
IncludeSocialProfiles()
Include related SocialProfiles resources in the response.
public PersonClient IncludeSocialProfiles()
Returns
PatchAsync(Person, CancellationToken)
Updates an existing Person resource asynchronously.
public Task<PersonResponse> PatchAsync(Person resource, CancellationToken cancellationToken = default)
Parameters
resourcePersonThe resource data to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<PersonResponse>
A task representing the asynchronous operation, containing the updated Person resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
PatchAsync(JsonApiDocument<PersonResource>, CancellationToken)
Updates an existing Person resource asynchronously.
public Task<PersonResponse> PatchAsync(JsonApiDocument<PersonResource> document, CancellationToken cancellationToken = default)
Parameters
documentJsonApiDocument<PersonResource>The JSON:API document to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<PersonResponse>
A task representing the asynchronous operation, containing the updated Person resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.