Class PaginatedCheckInTimeClient
- Namespace
- Crews.PlanningCenter.Api.CheckIns.V2023_04_05
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with CheckInTime collection resources.
public class PaginatedCheckInTimeClient : PaginatedResourceClient<CheckInTime, CheckInTimeResource, CheckInTimeCollectionResponse, CheckInTimeResponse>
- Inheritance
-
PaginatedResourceClient<CheckInTime, CheckInTimeResource, CheckInTimeCollectionResponse, CheckInTimeResponse>PaginatedCheckInTimeClient
- Inherited Members
Constructors
PaginatedCheckInTimeClient(HttpClient, Uri)
Client for interacting with CheckInTime collection resources.
public PaginatedCheckInTimeClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
GetAsync(CancellationToken)
Fetches a paginated list of CheckInTime resources asynchronously.
public Task<CheckInTimeCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<CheckInTimeCollectionResponse>
A task representing the asynchronous operation, containing a paginated list of CheckInTime resources.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
WithId(string)
Creates a new instance of a CheckInTime client for a specific resource ID.
public CheckInTimeClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- CheckInTimeClient
A new instance of the resource client for the specified resource ID.