Class PaginatedAttendanceTypeClient
- Namespace
- Crews.PlanningCenter.Api.CheckIns.V2023_04_05
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with AttendanceType collection resources.
public class PaginatedAttendanceTypeClient : PaginatedResourceClient<AttendanceType, AttendanceTypeResource, AttendanceTypeCollectionResponse, AttendanceTypeResponse>
- Inheritance
-
PaginatedResourceClient<AttendanceType, AttendanceTypeResource, AttendanceTypeCollectionResponse, AttendanceTypeResponse>PaginatedAttendanceTypeClient
- Inherited Members
Constructors
PaginatedAttendanceTypeClient(HttpClient, Uri)
Client for interacting with AttendanceType collection resources.
public PaginatedAttendanceTypeClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public PaginatedAttendanceTypeClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- PaginatedAttendanceTypeClient
The current PaginatedAttendanceTypeClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public PaginatedAttendanceTypeClient ClearParameters()
Returns
- PaginatedAttendanceTypeClient
The current PaginatedAttendanceTypeClient instance.
Filter(string)
Adds a filter query parameter to the request.
public PaginatedAttendanceTypeClient Filter(string filter)
Parameters
filterstringThe filter criteria.
Returns
- PaginatedAttendanceTypeClient
The current PaginatedAttendanceTypeClient instance.
Remarks
See Planning Center API documentation for details on supported filter values for this resource.
GetAsync(CancellationToken)
Fetches a paginated list of AttendanceType resources asynchronously.
public Task<AttendanceTypeCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<AttendanceTypeCollectionResponse>
A task representing the asynchronous operation, containing a paginated list of AttendanceType resources.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeEvent()
Include related Event resources in the response.
public AttendanceTypeClient IncludeEvent()
Returns
Offset(int)
Sets the item offset in the paginated response.
public PaginatedAttendanceTypeClient Offset(int count)
Parameters
countintThe number of items to skip.
Returns
- PaginatedAttendanceTypeClient
The current PaginatedAttendanceTypeClient instance.
PerPage(int)
Sets the number of items to be returned per page in the paginated response.
public PaginatedAttendanceTypeClient PerPage(int count)
Parameters
countintThe number of items to be returned per page.
Returns
- PaginatedAttendanceTypeClient
The current PaginatedAttendanceTypeClient instance.
WhereId(string)
Query response items by the Id attribute.
public AttendanceTypeClient WhereId(string value)
Parameters
valuestring
Returns
WhereName(string)
Query response items by the Name attribute.
public AttendanceTypeClient WhereName(string value)
Parameters
valuestring
Returns
WithId(string)
Creates a new instance of a AttendanceType client for a specific resource ID.
public AttendanceTypeClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- AttendanceTypeClient
A new instance of the resource client for the specified resource ID.