Class PaginatedWorkflowCardClient
- Namespace
- Crews.PlanningCenter.Api.People.V2024_09_12
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with WorkflowCard collection resources.
public class PaginatedWorkflowCardClient : PaginatedResourceClient<WorkflowCard, WorkflowCardResource, WorkflowCardCollectionResponse, WorkflowCardResponse>
- Inheritance
-
PaginatedResourceClient<WorkflowCard, WorkflowCardResource, WorkflowCardCollectionResponse, WorkflowCardResponse>PaginatedWorkflowCardClient
- Inherited Members
Constructors
PaginatedWorkflowCardClient(HttpClient, Uri)
Client for interacting with WorkflowCard collection resources.
public PaginatedWorkflowCardClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
GetAsync(CancellationToken)
Fetches a paginated list of WorkflowCard resources asynchronously.
public Task<WorkflowCardCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<WorkflowCardCollectionResponse>
A task representing the asynchronous operation, containing a paginated list of WorkflowCard resources.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeAssignee()
Include related Assignee resources in the response.
public WorkflowCardClient IncludeAssignee()
Returns
IncludeCurrentStep()
Include related CurrentStep resources in the response.
public WorkflowCardClient IncludeCurrentStep()
Returns
IncludePerson()
Include related Person resources in the response.
public WorkflowCardClient IncludePerson()
Returns
IncludeWorkflow()
Include related Workflow resources in the response.
public WorkflowCardClient IncludeWorkflow()
Returns
OrderByCompletedAt()
Sort response items by the CompletedAt attribute.
public WorkflowCardClient OrderByCompletedAt()
Returns
OrderByCompletedAtDescending()
Sort response items by the CompletedAt attribute. Use reverse order.
public WorkflowCardClient OrderByCompletedAtDescending()
Returns
OrderByCreatedAt()
Sort response items by the CreatedAt attribute.
public WorkflowCardClient OrderByCreatedAt()
Returns
OrderByCreatedAtDescending()
Sort response items by the CreatedAt attribute. Use reverse order.
public WorkflowCardClient OrderByCreatedAtDescending()
Returns
OrderByFirstName()
Sort response items by the FirstName attribute.
public WorkflowCardClient OrderByFirstName()
Returns
OrderByFirstNameDescending()
Sort response items by the FirstName attribute. Use reverse order.
public WorkflowCardClient OrderByFirstNameDescending()
Returns
OrderByFlaggedForNotificationAt()
Sort response items by the FlaggedForNotificationAt attribute.
public WorkflowCardClient OrderByFlaggedForNotificationAt()
Returns
OrderByFlaggedForNotificationAtDescending()
Sort response items by the FlaggedForNotificationAt attribute. Use reverse order.
public WorkflowCardClient OrderByFlaggedForNotificationAtDescending()
Returns
OrderByLastName()
Sort response items by the LastName attribute.
public WorkflowCardClient OrderByLastName()
Returns
OrderByLastNameDescending()
Sort response items by the LastName attribute. Use reverse order.
public WorkflowCardClient OrderByLastNameDescending()
Returns
OrderByMovedToStepAt()
Sort response items by the MovedToStepAt attribute.
public WorkflowCardClient OrderByMovedToStepAt()
Returns
OrderByMovedToStepAtDescending()
Sort response items by the MovedToStepAt attribute. Use reverse order.
public WorkflowCardClient OrderByMovedToStepAtDescending()
Returns
OrderByRemovedAt()
Sort response items by the RemovedAt attribute.
public WorkflowCardClient OrderByRemovedAt()
Returns
OrderByRemovedAtDescending()
Sort response items by the RemovedAt attribute. Use reverse order.
public WorkflowCardClient OrderByRemovedAtDescending()
Returns
OrderByStage()
Sort response items by the Stage attribute.
public WorkflowCardClient OrderByStage()
Returns
OrderByStageDescending()
Sort response items by the Stage attribute. Use reverse order.
public WorkflowCardClient OrderByStageDescending()
Returns
OrderByUpdatedAt()
Sort response items by the UpdatedAt attribute.
public WorkflowCardClient OrderByUpdatedAt()
Returns
OrderByUpdatedAtDescending()
Sort response items by the UpdatedAt attribute. Use reverse order.
public WorkflowCardClient OrderByUpdatedAtDescending()
Returns
PostAsync(WorkflowCard, CancellationToken)
Creates a new WorkflowCard resource asynchronously.
public Task<WorkflowCardResponse> PostAsync(WorkflowCard resource, CancellationToken cancellationToken = default)
Parameters
resourceWorkflowCardThe resource data to be sent in the POST request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<WorkflowCardResponse>
A task representing the asynchronous operation, containing the created WorkflowCard resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
PostAsync(JsonApiDocument<WorkflowCardResource>, CancellationToken)
Creates a new WorkflowCard resource asynchronously.
public Task<WorkflowCardResponse> PostAsync(JsonApiDocument<WorkflowCardResource> document, CancellationToken cancellationToken = default)
Parameters
documentJsonApiDocument<WorkflowCardResource>The JSON:API document to be sent in the POST request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<WorkflowCardResponse>
A task representing the asynchronous operation, containing the created WorkflowCard resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
WhereAssigneeId(int)
Query response items by the AssigneeId attribute.
public WorkflowCardClient WhereAssigneeId(int value)
Parameters
valueint
Returns
WhereOverdue(bool)
Query response items by the Overdue attribute.
public WorkflowCardClient WhereOverdue(bool value)
Parameters
valuebool
Returns
WhereStage(string)
Query response items by the Stage attribute.
public WorkflowCardClient WhereStage(string value)
Parameters
valuestring
Returns
WithId(string)
Creates a new instance of a WorkflowCard client for a specific resource ID.
public WorkflowCardClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- WorkflowCardClient
A new instance of the resource client for the specified resource ID.