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