Class LocationClient
- Namespace
- Crews.PlanningCenter.Api.CheckIns.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
CheckIns
Associated CheckIns.
public PaginatedCheckInClient CheckIns { get; }
Property Value
Event
Associated Event.
public EventClient Event { get; }
Property Value
IntegrationLinks
Associated IntegrationLinks.
public PaginatedIntegrationLinkClient IntegrationLinks { get; }
Property Value
LocationEventPeriods
Associated LocationEventPeriods.
public PaginatedLocationEventPeriodClient LocationEventPeriods { get; }
Property Value
LocationEventTimes
Associated LocationEventTimes.
public PaginatedLocationEventTimeClient LocationEventTimes { get; }
Property Value
LocationLabels
Associated LocationLabels.
public PaginatedLocationLabelClient LocationLabels { get; }
Property Value
Locations
Associated Locations.
public PaginatedLocationClient Locations { get; }
Property Value
Options
Associated Options.
public PaginatedOptionClient Options { get; }
Property Value
Parent
Associated Parent.
public LocationClient Parent { 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.
IncludeEvent()
Include related Event resources in the response.
public LocationClient IncludeEvent()
Returns
IncludeLocations()
Include related Locations resources in the response.
public LocationClient IncludeLocations()
Returns
IncludeOptions()
Include related Options resources in the response.
public LocationClient IncludeOptions()
Returns
IncludeParent()
Include related Parent resources in the response.
public LocationClient IncludeParent()