Table of Contents

Class PaginatedPlanPersonClient

Namespace
Crews.PlanningCenter.Api.Services.V2018_11_01
Assembly
Crews.PlanningCenter.Api.dll

Client for interacting with PlanPerson collection resources.

public class PaginatedPlanPersonClient : PaginatedResourceClient<PlanPerson, PlanPersonResource, PlanPersonCollectionResponse, PlanPersonResponse>
Inheritance
PaginatedPlanPersonClient
Inherited Members

Constructors

PaginatedPlanPersonClient(HttpClient, Uri)

Client for interacting with PlanPerson collection resources.

public PaginatedPlanPersonClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

GetAsync(CancellationToken)

Fetches a paginated list of PlanPerson resources asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<PlanPersonCollectionResponse>

A task representing the asynchronous operation, containing a paginated list of PlanPerson resources.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

IncludeDeclinedPlanTimes()

Include related DeclinedPlanTimes resources in the response.

public PlanPersonClient IncludeDeclinedPlanTimes()

Returns

PlanPersonClient

IncludePerson()

Include related Person resources in the response.

public PlanPersonClient IncludePerson()

Returns

PlanPersonClient

IncludePlan()

Include related Plan resources in the response.

public PlanPersonClient IncludePlan()

Returns

PlanPersonClient

IncludeTeam()

Include related Team resources in the response.

public PlanPersonClient IncludeTeam()

Returns

PlanPersonClient

PostAsync(PlanPerson, CancellationToken)

Creates a new PlanPerson resource asynchronously.

public Task<PlanPersonResponse> PostAsync(PlanPerson resource, CancellationToken cancellationToken = default)

Parameters

resource PlanPerson

The resource data to be sent in the POST request.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<PlanPersonResponse>

A task representing the asynchronous operation, containing the created PlanPerson resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

PostAsync(JsonApiDocument<PlanPersonResource>, CancellationToken)

Creates a new PlanPerson resource asynchronously.

public Task<PlanPersonResponse> PostAsync(JsonApiDocument<PlanPersonResource> document, CancellationToken cancellationToken = default)

Parameters

document JsonApiDocument<PlanPersonResource>

The JSON:API document to be sent in the POST request.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<PlanPersonResponse>

A task representing the asynchronous operation, containing the created PlanPerson resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

WhereTeamId(int)

Query response items by the TeamId attribute.

public PlanPersonClient WhereTeamId(int value)

Parameters

value int

Returns

PlanPersonClient

WithId(string)

Creates a new instance of a PlanPerson client for a specific resource ID.

public PlanPersonClient WithId(string id)

Parameters

id string

The ID of the resource to create a client for.

Returns

PlanPersonClient

A new instance of the resource client for the specified resource ID.