Class LocationEventPeriodClient
- Namespace
- Crews.PlanningCenter.Api.CheckIns.V2019_07_17
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the LocationEventPeriod resource.
public class LocationEventPeriodClient : SingletonResourceClient<LocationEventPeriod, LocationEventPeriodResource, LocationEventPeriodResponse>
- Inheritance
-
SingletonResourceClient<LocationEventPeriod, LocationEventPeriodResource, LocationEventPeriodResponse>LocationEventPeriodClient
- Inherited Members
Constructors
LocationEventPeriodClient(HttpClient, Uri)
Client for interacting with the LocationEventPeriod resource.
public LocationEventPeriodClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
CheckIns
Associated CheckIns.
public PaginatedCheckInClient CheckIns { get; }
Property Value
EventPeriod
Associated EventPeriod.
public EventPeriodClient EventPeriod { get; }
Property Value
Location
Associated Location.
public LocationClient Location { get; }
Property Value
Methods
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public LocationEventPeriodClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- LocationEventPeriodClient
The current LocationEventPeriodClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public LocationEventPeriodClient ClearParameters()
Returns
- LocationEventPeriodClient
The current LocationEventPeriodClient instance.
GetAsync(CancellationToken)
Fetches the LocationEventPeriod resource asynchronously.
public Task<LocationEventPeriodResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<LocationEventPeriodResponse>
A task representing the asynchronous operation, containing the LocationEventPeriod resource.
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()