Class PaginatedLocationEventTimeClient
- Namespace
- Crews.PlanningCenter.Api.CheckIns.V2019_07_17
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with LocationEventTime collection resources.
public class PaginatedLocationEventTimeClient : PaginatedResourceClient<LocationEventTime, LocationEventTimeResource, LocationEventTimeCollectionResponse, LocationEventTimeResponse>
- Inheritance
-
PaginatedResourceClient<LocationEventTime, LocationEventTimeResource, LocationEventTimeCollectionResponse, LocationEventTimeResponse>PaginatedLocationEventTimeClient
- Inherited Members
Constructors
PaginatedLocationEventTimeClient(HttpClient, Uri)
Client for interacting with LocationEventTime collection resources.
public PaginatedLocationEventTimeClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
GetAsync(CancellationToken)
Fetches a paginated list of LocationEventTime resources asynchronously.
public Task<LocationEventTimeCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<LocationEventTimeCollectionResponse>
A task representing the asynchronous operation, containing a paginated list of LocationEventTime resources.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeEventTime()
Include related EventTime resources in the response.
public LocationEventTimeClient IncludeEventTime()
Returns
IncludeLocation()
Include related Location resources in the response.
public LocationEventTimeClient IncludeLocation()
Returns
WhereCreatedAt(DateTime)
Query response items by the CreatedAt attribute.
public LocationEventTimeClient WhereCreatedAt(DateTime value)
Parameters
valueDateTime
Returns
WhereUpdatedAt(DateTime)
Query response items by the UpdatedAt attribute.
public LocationEventTimeClient WhereUpdatedAt(DateTime value)
Parameters
valueDateTime
Returns
WithId(string)
Creates a new instance of a LocationEventTime client for a specific resource ID.
public LocationEventTimeClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- LocationEventTimeClient
A new instance of the resource client for the specified resource ID.