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