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