Class PaginatedWorkflowStepClient
- Namespace
- Crews.PlanningCenter.Api.People.V2020_04_06
- 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
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public PaginatedWorkflowStepClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- PaginatedWorkflowStepClient
The current PaginatedWorkflowStepClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public PaginatedWorkflowStepClient ClearParameters()
Returns
- PaginatedWorkflowStepClient
The current PaginatedWorkflowStepClient instance.
Filter(string)
Adds a filter query parameter to the request.
public PaginatedWorkflowStepClient Filter(string filter)
Parameters
filterstringThe filter criteria.
Returns
- PaginatedWorkflowStepClient
The current PaginatedWorkflowStepClient instance.
Remarks
See Planning Center API documentation for details on supported filter values for this resource.
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
Offset(int)
Sets the item offset in the paginated response.
public PaginatedWorkflowStepClient Offset(int count)
Parameters
countintThe number of items to skip.
Returns
- PaginatedWorkflowStepClient
The current PaginatedWorkflowStepClient instance.
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
PerPage(int)
Sets the number of items to be returned per page in the paginated response.
public PaginatedWorkflowStepClient PerPage(int count)
Parameters
countintThe number of items to be returned per page.
Returns
- PaginatedWorkflowStepClient
The current PaginatedWorkflowStepClient instance.
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.