Class PaginatedWorkflowClient
- Namespace
- Crews.PlanningCenter.Api.People.V2023_03_21
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with Workflow collection resources.
public class PaginatedWorkflowClient : PaginatedResourceClient<Workflow, WorkflowResource, WorkflowCollectionResponse, WorkflowResponse>
- Inheritance
-
PaginatedWorkflowClient
- Inherited Members
Constructors
PaginatedWorkflowClient(HttpClient, Uri)
Client for interacting with Workflow collection resources.
public PaginatedWorkflowClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
GetAsync(CancellationToken)
Fetches a paginated list of Workflow resources asynchronously.
public Task<WorkflowCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<WorkflowCollectionResponse>
A task representing the asynchronous operation, containing a paginated list of Workflow resources.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeCategory()
Include related Category resources in the response.
public WorkflowClient IncludeCategory()
Returns
IncludeShares()
Include related Shares resources in the response.
public WorkflowClient IncludeShares()
Returns
IncludeSteps()
Include related Steps resources in the response.
public WorkflowClient IncludeSteps()
Returns
OrderByArchivedAt()
Sort response items by the ArchivedAt attribute.
public WorkflowClient OrderByArchivedAt()
Returns
OrderByArchivedAtDescending()
Sort response items by the ArchivedAt attribute. Use reverse order.
public WorkflowClient OrderByArchivedAtDescending()
Returns
OrderByCampusId()
Sort response items by the CampusId attribute.
public WorkflowClient OrderByCampusId()
Returns
OrderByCampusIdDescending()
Sort response items by the CampusId attribute. Use reverse order.
public WorkflowClient OrderByCampusIdDescending()
Returns
OrderByCreatedAt()
Sort response items by the CreatedAt attribute.
public WorkflowClient OrderByCreatedAt()
Returns
OrderByCreatedAtDescending()
Sort response items by the CreatedAt attribute. Use reverse order.
public WorkflowClient OrderByCreatedAtDescending()
Returns
OrderByDeletedAt()
Sort response items by the DeletedAt attribute.
public WorkflowClient OrderByDeletedAt()
Returns
OrderByDeletedAtDescending()
Sort response items by the DeletedAt attribute. Use reverse order.
public WorkflowClient OrderByDeletedAtDescending()
Returns
OrderByName()
Sort response items by the Name attribute.
public WorkflowClient OrderByName()
Returns
OrderByNameDescending()
Sort response items by the Name attribute. Use reverse order.
public WorkflowClient OrderByNameDescending()
Returns
OrderByUpdatedAt()
Sort response items by the UpdatedAt attribute.
public WorkflowClient OrderByUpdatedAt()
Returns
OrderByUpdatedAtDescending()
Sort response items by the UpdatedAt attribute. Use reverse order.
public WorkflowClient OrderByUpdatedAtDescending()
Returns
OrderByWorkflowCategoryId()
Sort response items by the WorkflowCategoryId attribute.
public WorkflowClient OrderByWorkflowCategoryId()
Returns
OrderByWorkflowCategoryIdDescending()
Sort response items by the WorkflowCategoryId attribute. Use reverse order.
public WorkflowClient OrderByWorkflowCategoryIdDescending()
Returns
PostAsync(Workflow, CancellationToken)
Creates a new Workflow resource asynchronously.
public Task<WorkflowResponse> PostAsync(Workflow resource, CancellationToken cancellationToken = default)
Parameters
resourceWorkflowThe resource data to be sent in the POST request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<WorkflowResponse>
A task representing the asynchronous operation, containing the created Workflow resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
PostAsync(JsonApiDocument<WorkflowResource>, CancellationToken)
Creates a new Workflow resource asynchronously.
public Task<WorkflowResponse> PostAsync(JsonApiDocument<WorkflowResource> document, CancellationToken cancellationToken = default)
Parameters
documentJsonApiDocument<WorkflowResource>The JSON:API document to be sent in the POST request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<WorkflowResponse>
A task representing the asynchronous operation, containing the created Workflow resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
WhereArchivedAt(DateTime)
Query response items by the ArchivedAt attribute.
public WorkflowClient WhereArchivedAt(DateTime value)
Parameters
valueDateTime
Returns
WhereCampusId(string)
Query response items by the CampusId attribute.
public WorkflowClient WhereCampusId(string value)
Parameters
valuestring
Returns
WhereCreatedAt(DateTime)
Query response items by the CreatedAt attribute.
public WorkflowClient WhereCreatedAt(DateTime value)
Parameters
valueDateTime
Returns
WhereDeletedAt(DateTime)
Query response items by the DeletedAt attribute.
public WorkflowClient WhereDeletedAt(DateTime value)
Parameters
valueDateTime
Returns
WhereId(string)
Query response items by the Id attribute.
public WorkflowClient WhereId(string value)
Parameters
valuestring
Returns
WhereName(string)
Query response items by the Name attribute.
public WorkflowClient WhereName(string value)
Parameters
valuestring
Returns
WhereUpdatedAt(DateTime)
Query response items by the UpdatedAt attribute.
public WorkflowClient WhereUpdatedAt(DateTime value)
Parameters
valueDateTime
Returns
WhereWorkflowCategoryId(string)
Query response items by the WorkflowCategoryId attribute.
public WorkflowClient WhereWorkflowCategoryId(string value)
Parameters
valuestring
Returns
WithId(string)
Creates a new instance of a Workflow client for a specific resource ID.
public WorkflowClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- WorkflowClient
A new instance of the resource client for the specified resource ID.