Table of Contents

Class PersonTeamPositionAssignmentClient

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

Client for interacting with the PersonTeamPositionAssignment resource.

public class PersonTeamPositionAssignmentClient : SingletonResourceClient<PersonTeamPositionAssignment, PersonTeamPositionAssignmentResource, PersonTeamPositionAssignmentResponse>
Inheritance
PersonTeamPositionAssignmentClient
Inherited Members

Constructors

PersonTeamPositionAssignmentClient(HttpClient, Uri)

Client for interacting with the PersonTeamPositionAssignment resource.

public PersonTeamPositionAssignmentClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Properties

Person

Associated Person.

public PersonClient Person { get; }

Property Value

PersonClient

TeamPosition

Associated TeamPosition.

public TeamPositionClient TeamPosition { get; }

Property Value

TeamPositionClient

Methods

DeleteAsync(CancellationToken)

Deletes the PersonTeamPositionAssignment resource asynchronously.

public Task DeleteAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task

A task representing the asynchronous delete operation.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

GetAsync(CancellationToken)

Fetches the PersonTeamPositionAssignment resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<PersonTeamPositionAssignmentResponse>

A task representing the asynchronous operation, containing the PersonTeamPositionAssignment resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

IncludePerson()

Include related Person resources in the response.

public PersonTeamPositionAssignmentClient IncludePerson()

Returns

PersonTeamPositionAssignmentClient

IncludeTeamPosition()

Include related TeamPosition resources in the response.

public PersonTeamPositionAssignmentClient IncludeTeamPosition()

Returns

PersonTeamPositionAssignmentClient

PatchAsync(PersonTeamPositionAssignment, CancellationToken)

Updates an existing PersonTeamPositionAssignment resource asynchronously.

public Task<PersonTeamPositionAssignmentResponse> PatchAsync(PersonTeamPositionAssignment resource, CancellationToken cancellationToken = default)

Parameters

resource PersonTeamPositionAssignment

The resource data to be sent in the patch request.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<PersonTeamPositionAssignmentResponse>

A task representing the asynchronous operation, containing the updated PersonTeamPositionAssignment resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

PatchAsync(JsonApiDocument<PersonTeamPositionAssignmentResource>, CancellationToken)

Updates an existing PersonTeamPositionAssignment resource asynchronously.

public Task<PersonTeamPositionAssignmentResponse> PatchAsync(JsonApiDocument<PersonTeamPositionAssignmentResource> document, CancellationToken cancellationToken = default)

Parameters

document JsonApiDocument<PersonTeamPositionAssignmentResource>

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

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<PersonTeamPositionAssignmentResponse>

A task representing the asynchronous operation, containing the updated PersonTeamPositionAssignment resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.