Class AttendeeClient
- Namespace
- Crews.PlanningCenter.Api.Registrations.V2025_05_01
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the Attendee resource.
public class AttendeeClient : SingletonResourceClient<Attendee, AttendeeResource, AttendeeResponse>
- Inheritance
-
AttendeeClient
- Inherited Members
Constructors
AttendeeClient(HttpClient, Uri)
Client for interacting with the Attendee resource.
public AttendeeClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
EmergencyContact
Associated EmergencyContact.
public EmergencyContactClient EmergencyContact { get; }
Property Value
Person
Associated Person.
public PersonClient Person { get; }
Property Value
Registration
Associated Registration.
public RegistrationClient Registration { get; }
Property Value
SelectionType
Associated SelectionType.
public SelectionTypeClient SelectionType { get; }
Property Value
Methods
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public AttendeeClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- AttendeeClient
The current AttendeeClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public AttendeeClient ClearParameters()
Returns
- AttendeeClient
The current AttendeeClient instance.
GetAsync(CancellationToken)
Fetches the Attendee resource asynchronously.
public Task<AttendeeResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<AttendeeResponse>
A task representing the asynchronous operation, containing the Attendee resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeEmergencyContact()
Include related EmergencyContact resources in the response.
public AttendeeClient IncludeEmergencyContact()
Returns
IncludePerson()
Include related Person resources in the response.
public AttendeeClient IncludePerson()
Returns
IncludeRegistration()
Include related Registration resources in the response.
public AttendeeClient IncludeRegistration()
Returns
IncludeSelectionType()
Include related SelectionType resources in the response.
public AttendeeClient IncludeSelectionType()