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