Class LocationClient
- Namespace
- Crews.PlanningCenter.Api.Groups.V2018_08_01
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the Location resource.
public class LocationClient : SingletonResourceClient<Location, LocationResource, LocationResponse>
- Inheritance
-
LocationClient
- Inherited Members
Constructors
LocationClient(HttpClient, Uri)
Client for interacting with the Location resource.
public LocationClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
Group
Associated Group.
public GroupClient Group { get; }
Property Value
Methods
GetAsync(CancellationToken)
Fetches the Location resource asynchronously.
public Task<LocationResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<LocationResponse>
A task representing the asynchronous operation, containing the Location resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeGroup()
Include related Group resources in the response.
public LocationClient IncludeGroup()