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