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