Class NoteCategoryClient
- Namespace
- Crews.PlanningCenter.Api.People.V2022_07_14
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the NoteCategory resource.
public class NoteCategoryClient : SingletonResourceClient<NoteCategory, NoteCategoryResource, NoteCategoryResponse>
- Inheritance
-
NoteCategoryClient
- Inherited Members
Constructors
NoteCategoryClient(HttpClient, Uri)
Client for interacting with the NoteCategory resource.
public NoteCategoryClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
Shares
Associated Shares.
public PaginatedNoteCategoryShareClient Shares { get; }
Property Value
Subscribers
Associated Subscribers.
public PaginatedPersonClient Subscribers { get; }
Property Value
Subscriptions
Associated Subscriptions.
public PaginatedNoteCategorySubscriptionClient Subscriptions { get; }
Property Value
Methods
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public NoteCategoryClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- NoteCategoryClient
The current NoteCategoryClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public NoteCategoryClient ClearParameters()
Returns
- NoteCategoryClient
The current NoteCategoryClient instance.
DeleteAsync(CancellationToken)
Deletes the NoteCategory 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 NoteCategory resource asynchronously.
public Task<NoteCategoryResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<NoteCategoryResponse>
A task representing the asynchronous operation, containing the NoteCategory resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeShares()
Include related Shares resources in the response.
public NoteCategoryClient IncludeShares()
Returns
IncludeSubscribers()
Include related Subscribers resources in the response.
public NoteCategoryClient IncludeSubscribers()
Returns
IncludeSubscriptions()
Include related Subscriptions resources in the response.
public NoteCategoryClient IncludeSubscriptions()
Returns
PatchAsync(NoteCategory, CancellationToken)
Updates an existing NoteCategory resource asynchronously.
public Task<NoteCategoryResponse> PatchAsync(NoteCategory resource, CancellationToken cancellationToken = default)
Parameters
resourceNoteCategoryThe resource data to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<NoteCategoryResponse>
A task representing the asynchronous operation, containing the updated NoteCategory resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
PatchAsync(JsonApiDocument<NoteCategoryResource>, CancellationToken)
Updates an existing NoteCategory resource asynchronously.
public Task<NoteCategoryResponse> PatchAsync(JsonApiDocument<NoteCategoryResource> document, CancellationToken cancellationToken = default)
Parameters
documentJsonApiDocument<NoteCategoryResource>The JSON:API document to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<NoteCategoryResponse>
A task representing the asynchronous operation, containing the updated NoteCategory resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.