Class PaginatedWorkflowClient
- Namespace
- Crews.PlanningCenter.Api.People.V2022_01_05
- 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
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public PaginatedWorkflowClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- PaginatedWorkflowClient
The current PaginatedWorkflowClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public PaginatedWorkflowClient ClearParameters()
Returns
- PaginatedWorkflowClient
The current PaginatedWorkflowClient instance.
Filter(string)
Adds a filter query parameter to the request.
public PaginatedWorkflowClient Filter(string filter)
Parameters
filterstringThe filter criteria.
Returns
- PaginatedWorkflowClient
The current PaginatedWorkflowClient instance.
Remarks
See Planning Center API documentation for details on supported filter values for this resource.
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
Offset(int)
Sets the item offset in the paginated response.
public PaginatedWorkflowClient Offset(int count)
Parameters
countintThe number of items to skip.
Returns
- PaginatedWorkflowClient
The current PaginatedWorkflowClient instance.
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
OrderByCampusName()
Sort response items by the CampusName attribute.
public WorkflowClient OrderByCampusName()
Returns
OrderByCampusNameDescending()
Sort response items by the CampusName attribute. Use reverse order.
public WorkflowClient OrderByCampusNameDescending()
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
OrderByMyReadyCardCount()
Sort response items by the MyReadyCardCount attribute.
public WorkflowClient OrderByMyReadyCardCount()
Returns
OrderByMyReadyCardCountDescending()
Sort response items by the MyReadyCardCount attribute. Use reverse order.
public WorkflowClient OrderByMyReadyCardCountDescending()
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
OrderByTotalOverdueCardCount()
Sort response items by the TotalOverdueCardCount attribute.
public WorkflowClient OrderByTotalOverdueCardCount()
Returns
OrderByTotalOverdueCardCountDescending()
Sort response items by the TotalOverdueCardCount attribute. Use reverse order.
public WorkflowClient OrderByTotalOverdueCardCountDescending()
Returns
OrderByTotalReadyCardCount()
Sort response items by the TotalReadyCardCount attribute.
public WorkflowClient OrderByTotalReadyCardCount()
Returns
OrderByTotalReadyCardCountDescending()
Sort response items by the TotalReadyCardCount attribute. Use reverse order.
public WorkflowClient OrderByTotalReadyCardCountDescending()
Returns
OrderByTotalUnassignedCardCount()
Sort response items by the TotalUnassignedCardCount attribute.
public WorkflowClient OrderByTotalUnassignedCardCount()
Returns
OrderByTotalUnassignedCardCountDescending()
Sort response items by the TotalUnassignedCardCount attribute. Use reverse order.
public WorkflowClient OrderByTotalUnassignedCardCountDescending()
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
OrderByWorkflowCategoryName()
Sort response items by the WorkflowCategoryName attribute.
public WorkflowClient OrderByWorkflowCategoryName()
Returns
OrderByWorkflowCategoryNameDescending()
Sort response items by the WorkflowCategoryName attribute. Use reverse order.
public WorkflowClient OrderByWorkflowCategoryNameDescending()
Returns
PerPage(int)
Sets the number of items to be returned per page in the paginated response.
public PaginatedWorkflowClient PerPage(int count)
Parameters
countintThe number of items to be returned per page.
Returns
- PaginatedWorkflowClient
The current PaginatedWorkflowClient instance.
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.