Class PaginatedListCategoryClient
- Namespace
- Crews.PlanningCenter.Api.People.V2019_10_10
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with ListCategory collection resources.
public class PaginatedListCategoryClient : PaginatedResourceClient<ListCategory, ListCategoryResource, ListCategoryCollectionResponse, ListCategoryResponse>
- Inheritance
-
PaginatedResourceClient<ListCategory, ListCategoryResource, ListCategoryCollectionResponse, ListCategoryResponse>PaginatedListCategoryClient
- Inherited Members
Constructors
PaginatedListCategoryClient(HttpClient, Uri)
Client for interacting with ListCategory collection resources.
public PaginatedListCategoryClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
GetAsync(CancellationToken)
Fetches a paginated list of ListCategory resources asynchronously.
public Task<ListCategoryCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<ListCategoryCollectionResponse>
A task representing the asynchronous operation, containing a paginated list of ListCategory resources.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeLists()
Include related Lists resources in the response.
public ListCategoryClient IncludeLists()
Returns
OrderByCreatedAt()
Sort response items by the CreatedAt attribute.
public ListCategoryClient OrderByCreatedAt()
Returns
OrderByCreatedAtDescending()
Sort response items by the CreatedAt attribute. Use reverse order.
public ListCategoryClient OrderByCreatedAtDescending()
Returns
OrderByName()
Sort response items by the Name attribute.
public ListCategoryClient OrderByName()
Returns
OrderByNameDescending()
Sort response items by the Name attribute. Use reverse order.
public ListCategoryClient OrderByNameDescending()
Returns
OrderByOrganizationId()
Sort response items by the OrganizationId attribute.
public ListCategoryClient OrderByOrganizationId()
Returns
OrderByOrganizationIdDescending()
Sort response items by the OrganizationId attribute. Use reverse order.
public ListCategoryClient OrderByOrganizationIdDescending()
Returns
OrderByUpdatedAt()
Sort response items by the UpdatedAt attribute.
public ListCategoryClient OrderByUpdatedAt()
Returns
OrderByUpdatedAtDescending()
Sort response items by the UpdatedAt attribute. Use reverse order.
public ListCategoryClient OrderByUpdatedAtDescending()
Returns
PostAsync(ListCategory, CancellationToken)
Creates a new ListCategory resource asynchronously.
public Task<ListCategoryResponse> PostAsync(ListCategory resource, CancellationToken cancellationToken = default)
Parameters
resourceListCategoryThe resource data to be sent in the POST request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<ListCategoryResponse>
A task representing the asynchronous operation, containing the created ListCategory resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
PostAsync(JsonApiDocument<ListCategoryResource>, CancellationToken)
Creates a new ListCategory resource asynchronously.
public Task<ListCategoryResponse> PostAsync(JsonApiDocument<ListCategoryResource> document, CancellationToken cancellationToken = default)
Parameters
documentJsonApiDocument<ListCategoryResource>The JSON:API document to be sent in the POST request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<ListCategoryResponse>
A task representing the asynchronous operation, containing the created ListCategory resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
WhereCreatedAt(DateTime)
Query response items by the CreatedAt attribute.
public ListCategoryClient WhereCreatedAt(DateTime value)
Parameters
valueDateTime
Returns
WhereName(string)
Query response items by the Name attribute.
public ListCategoryClient WhereName(string value)
Parameters
valuestring
Returns
WhereOrganizationId(string)
Query response items by the OrganizationId attribute.
public ListCategoryClient WhereOrganizationId(string value)
Parameters
valuestring
Returns
WhereUpdatedAt(DateTime)
Query response items by the UpdatedAt attribute.
public ListCategoryClient WhereUpdatedAt(DateTime value)
Parameters
valueDateTime
Returns
WithId(string)
Creates a new instance of a ListCategory client for a specific resource ID.
public ListCategoryClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- ListCategoryClient
A new instance of the resource client for the specified resource ID.