Class NoteCategoryShareClient
- Namespace
- Crews.PlanningCenter.Api.People.V2019_01_14
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the NoteCategoryShare resource.
public class NoteCategoryShareClient : SingletonResourceClient<NoteCategoryShare, NoteCategoryShareResource, NoteCategoryShareResponse>
- Inheritance
-
NoteCategoryShareClient
- Inherited Members
Constructors
NoteCategoryShareClient(HttpClient, Uri)
Client for interacting with the NoteCategoryShare resource.
public NoteCategoryShareClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
Person
Associated Person.
public PersonClient Person { get; }
Property Value
Methods
DeleteAsync(CancellationToken)
Deletes the NoteCategoryShare 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 NoteCategoryShare resource asynchronously.
public Task<NoteCategoryShareResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<NoteCategoryShareResponse>
A task representing the asynchronous operation, containing the NoteCategoryShare resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludePerson()
Include related Person resources in the response.
public NoteCategoryShareClient IncludePerson()
Returns
PatchAsync(NoteCategoryShare, CancellationToken)
Updates an existing NoteCategoryShare resource asynchronously.
public Task<NoteCategoryShareResponse> PatchAsync(NoteCategoryShare resource, CancellationToken cancellationToken = default)
Parameters
resourceNoteCategoryShareThe resource data to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<NoteCategoryShareResponse>
A task representing the asynchronous operation, containing the updated NoteCategoryShare resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
PatchAsync(JsonApiDocument<NoteCategoryShareResource>, CancellationToken)
Updates an existing NoteCategoryShare resource asynchronously.
public Task<NoteCategoryShareResponse> PatchAsync(JsonApiDocument<NoteCategoryShareResource> document, CancellationToken cancellationToken = default)
Parameters
documentJsonApiDocument<NoteCategoryShareResource>The JSON:API document to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<NoteCategoryShareResponse>
A task representing the asynchronous operation, containing the updated NoteCategoryShare resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.