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