Class PersonTeamPositionAssignmentClient
- Namespace
- Crews.PlanningCenter.Api.Services.V2018_11_01
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the PersonTeamPositionAssignment resource.
public class PersonTeamPositionAssignmentClient : SingletonResourceClient<PersonTeamPositionAssignment, PersonTeamPositionAssignmentResource, PersonTeamPositionAssignmentResponse>
- Inheritance
-
SingletonResourceClient<PersonTeamPositionAssignment, PersonTeamPositionAssignmentResource, PersonTeamPositionAssignmentResponse>PersonTeamPositionAssignmentClient
- Inherited Members
Constructors
PersonTeamPositionAssignmentClient(HttpClient, Uri)
Client for interacting with the PersonTeamPositionAssignment resource.
public PersonTeamPositionAssignmentClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
Person
Associated Person.
public PersonClient Person { get; }
Property Value
TeamPosition
Associated TeamPosition.
public TeamPositionClient TeamPosition { get; }
Property Value
Methods
DeleteAsync(CancellationToken)
Deletes the PersonTeamPositionAssignment resource asynchronously.
public Task DeleteAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA 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
cancellationTokenCancellationTokenA 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
IncludeTeamPosition()
Include related TeamPosition resources in the response.
public PersonTeamPositionAssignmentClient IncludeTeamPosition()
Returns
PatchAsync(PersonTeamPositionAssignment, CancellationToken)
Updates an existing PersonTeamPositionAssignment resource asynchronously.
public Task<PersonTeamPositionAssignmentResponse> PatchAsync(PersonTeamPositionAssignment resource, CancellationToken cancellationToken = default)
Parameters
resourcePersonTeamPositionAssignmentThe resource data to be sent in the patch request.
cancellationTokenCancellationTokenA 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
documentJsonApiDocument<PersonTeamPositionAssignmentResource>The JSON:API document to be sent in the patch request.
cancellationTokenCancellationTokenA 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.