Class ListResultClient
- Namespace
- Crews.PlanningCenter.Api.People.V2020_07_22
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the ListResult resource.
public class ListResultClient : SingletonResourceClient<ListResult, ListResultResource, ListResultResponse>
- Inheritance
-
ListResultClient
- Inherited Members
Constructors
ListResultClient(HttpClient, Uri)
Client for interacting with the ListResult resource.
public ListResultClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
Person
Associated Person.
public PersonClient Person { get; }
Property Value
Methods
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public ListResultClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- ListResultClient
The current ListResultClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public ListResultClient ClearParameters()
Returns
- ListResultClient
The current ListResultClient instance.
GetAsync(CancellationToken)
Fetches the ListResult resource asynchronously.
public Task<ListResultResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<ListResultResponse>
A task representing the asynchronous operation, containing the ListResult resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludePerson()
Include related Person resources in the response.
public ListResultClient IncludePerson()