Table of Contents

Class ListResultClient

Namespace
Crews.PlanningCenter.Api.People.V2025_03_20
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

httpClient HttpClient
uri Uri

Properties

Person

Associated Person.

public PersonClient Person { get; }

Property Value

PersonClient

Methods

AddCustomParameter(string, string)

Adds a custom query parameter to the request URI.

public ListResultClient AddCustomParameter(string parameter, string value)

Parameters

parameter string

The name of the query parameter.

value string

The value of the query parameter.

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

cancellationToken CancellationToken

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

Returns

ListResultClient