Class PaginatedListShareClient
- Namespace
- Crews.PlanningCenter.Api.People.V2022_01_05
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with ListShare collection resources.
public class PaginatedListShareClient : PaginatedResourceClient<ListShare, ListShareResource, ListShareCollectionResponse, ListShareResponse>
- Inheritance
-
PaginatedResourceClient<ListShare, ListShareResource, ListShareCollectionResponse, ListShareResponse>PaginatedListShareClient
- Inherited Members
Constructors
PaginatedListShareClient(HttpClient, Uri)
Client for interacting with ListShare collection resources.
public PaginatedListShareClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
GetAsync(CancellationToken)
Fetches a paginated list of ListShare resources asynchronously.
public Task<ListShareCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<ListShareCollectionResponse>
A task representing the asynchronous operation, containing a paginated list of ListShare resources.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludePerson()
Include related Person resources in the response.
public ListShareClient IncludePerson()
Returns
OrderByCreatedAt()
Sort response items by the CreatedAt attribute.
public ListShareClient OrderByCreatedAt()
Returns
OrderByCreatedAtDescending()
Sort response items by the CreatedAt attribute. Use reverse order.
public ListShareClient OrderByCreatedAtDescending()
Returns
OrderByGroup()
Sort response items by the Group attribute.
public ListShareClient OrderByGroup()
Returns
OrderByGroupDescending()
Sort response items by the Group attribute. Use reverse order.
public ListShareClient OrderByGroupDescending()
Returns
PostAsync(ListShare, CancellationToken)
Creates a new ListShare resource asynchronously.
public Task<ListShareResponse> PostAsync(ListShare resource, CancellationToken cancellationToken = default)
Parameters
resourceListShareThe resource data to be sent in the POST request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<ListShareResponse>
A task representing the asynchronous operation, containing the created ListShare resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
PostAsync(JsonApiDocument<ListShareResource>, CancellationToken)
Creates a new ListShare resource asynchronously.
public Task<ListShareResponse> PostAsync(JsonApiDocument<ListShareResource> document, CancellationToken cancellationToken = default)
Parameters
documentJsonApiDocument<ListShareResource>The JSON:API document to be sent in the POST request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<ListShareResponse>
A task representing the asynchronous operation, containing the created ListShare resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
WhereCreatedAt(DateTime)
Query response items by the CreatedAt attribute.
public ListShareClient WhereCreatedAt(DateTime value)
Parameters
valueDateTime
Returns
WhereGroup(string)
Query response items by the Group attribute.
public ListShareClient WhereGroup(string value)
Parameters
valuestring
Returns
WhereName(string)
Query response items by the Name attribute.
public ListShareClient WhereName(string value)
Parameters
valuestring
Returns
WherePermission(string)
Query response items by the Permission attribute.
public ListShareClient WherePermission(string value)
Parameters
valuestring
Returns
WithId(string)
Creates a new instance of a ListShare client for a specific resource ID.
public ListShareClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- ListShareClient
A new instance of the resource client for the specified resource ID.