Class PaginatedAttendeeClient
- Namespace
- Crews.PlanningCenter.Api.Registrations.V2025_05_01
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with Attendee collection resources.
public class PaginatedAttendeeClient : PaginatedResourceClient<Attendee, AttendeeResource, AttendeeCollectionResponse, AttendeeResponse>
- Inheritance
-
PaginatedAttendeeClient
- Inherited Members
Constructors
PaginatedAttendeeClient(HttpClient, Uri)
Client for interacting with Attendee collection resources.
public PaginatedAttendeeClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public PaginatedAttendeeClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- PaginatedAttendeeClient
The current PaginatedAttendeeClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public PaginatedAttendeeClient ClearParameters()
Returns
- PaginatedAttendeeClient
The current PaginatedAttendeeClient instance.
Filter(string)
Adds a filter query parameter to the request.
public PaginatedAttendeeClient Filter(string filter)
Parameters
filterstringThe filter criteria.
Returns
- PaginatedAttendeeClient
The current PaginatedAttendeeClient instance.
Remarks
See Planning Center API documentation for details on supported filter values for this resource.
GetAsync(CancellationToken)
Fetches a paginated list of Attendee resources asynchronously.
public Task<AttendeeCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<AttendeeCollectionResponse>
A task representing the asynchronous operation, containing a paginated list of Attendee resources.
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()
Returns
Offset(int)
Sets the item offset in the paginated response.
public PaginatedAttendeeClient Offset(int count)
Parameters
countintThe number of items to skip.
Returns
- PaginatedAttendeeClient
The current PaginatedAttendeeClient instance.
PerPage(int)
Sets the number of items to be returned per page in the paginated response.
public PaginatedAttendeeClient PerPage(int count)
Parameters
countintThe number of items to be returned per page.
Returns
- PaginatedAttendeeClient
The current PaginatedAttendeeClient instance.
WithId(string)
Creates a new instance of a Attendee client for a specific resource ID.
public AttendeeClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- AttendeeClient
A new instance of the resource client for the specified resource ID.