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