Table of Contents

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

httpClient HttpClient
uri Uri

Properties

Group

Associated Group.

public GroupClient Group { get; }

Property Value

GroupClient

Methods

GetAsync(CancellationToken)

Fetches the Location resource asynchronously.

public Task<LocationResponse> GetAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A 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()

Returns

LocationClient