Class PaginatedFormClient
- Namespace
- Crews.PlanningCenter.Api.People.V2022_07_14
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with Form collection resources.
public class PaginatedFormClient : PaginatedResourceClient<Form, FormResource, FormCollectionResponse, FormResponse>
- Inheritance
-
PaginatedFormClient
- Inherited Members
Constructors
PaginatedFormClient(HttpClient, Uri)
Client for interacting with Form collection resources.
public PaginatedFormClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public PaginatedFormClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- PaginatedFormClient
The current PaginatedFormClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public PaginatedFormClient ClearParameters()
Returns
- PaginatedFormClient
The current PaginatedFormClient instance.
Filter(string)
Adds a filter query parameter to the request.
public PaginatedFormClient Filter(string filter)
Parameters
filterstringThe filter criteria.
Returns
- PaginatedFormClient
The current PaginatedFormClient instance.
Remarks
See Planning Center API documentation for details on supported filter values for this resource.
GetAsync(CancellationToken)
Fetches a paginated list of Form resources asynchronously.
public Task<FormCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<FormCollectionResponse>
A task representing the asynchronous operation, containing a paginated list of Form resources.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeCampus()
Include related Campus resources in the response.
public FormClient IncludeCampus()
Returns
IncludeCategory()
Include related Category resources in the response.
public FormClient IncludeCategory()
Returns
Offset(int)
Sets the item offset in the paginated response.
public PaginatedFormClient Offset(int count)
Parameters
countintThe number of items to skip.
Returns
- PaginatedFormClient
The current PaginatedFormClient instance.
OrderByActive()
Sort response items by the Active attribute.
public FormClient OrderByActive()
Returns
OrderByActiveDescending()
Sort response items by the Active attribute. Use reverse order.
public FormClient OrderByActiveDescending()
Returns
OrderByArchivedAt()
Sort response items by the ArchivedAt attribute.
public FormClient OrderByArchivedAt()
Returns
OrderByArchivedAtDescending()
Sort response items by the ArchivedAt attribute. Use reverse order.
public FormClient OrderByArchivedAtDescending()
Returns
OrderByCampus()
Sort response items by the Campus attribute.
public FormClient OrderByCampus()
Returns
OrderByCampusDescending()
Sort response items by the Campus attribute. Use reverse order.
public FormClient OrderByCampusDescending()
Returns
OrderByCategory()
Sort response items by the Category attribute.
public FormClient OrderByCategory()
Returns
OrderByCategoryDescending()
Sort response items by the Category attribute. Use reverse order.
public FormClient OrderByCategoryDescending()
Returns
OrderByCreatedAt()
Sort response items by the CreatedAt attribute.
public FormClient OrderByCreatedAt()
Returns
OrderByCreatedAtDescending()
Sort response items by the CreatedAt attribute. Use reverse order.
public FormClient OrderByCreatedAtDescending()
Returns
OrderByDeletedAt()
Sort response items by the DeletedAt attribute.
public FormClient OrderByDeletedAt()
Returns
OrderByDeletedAtDescending()
Sort response items by the DeletedAt attribute. Use reverse order.
public FormClient OrderByDeletedAtDescending()
Returns
OrderByDescription()
Sort response items by the Description attribute.
public FormClient OrderByDescription()
Returns
OrderByDescriptionDescending()
Sort response items by the Description attribute. Use reverse order.
public FormClient OrderByDescriptionDescending()
Returns
OrderByName()
Sort response items by the Name attribute.
public FormClient OrderByName()
Returns
OrderByNameDescending()
Sort response items by the Name attribute. Use reverse order.
public FormClient OrderByNameDescending()
Returns
OrderBySubmissionCount()
Sort response items by the SubmissionCount attribute.
public FormClient OrderBySubmissionCount()
Returns
OrderBySubmissionCountDescending()
Sort response items by the SubmissionCount attribute. Use reverse order.
public FormClient OrderBySubmissionCountDescending()
Returns
OrderByUpdatedAt()
Sort response items by the UpdatedAt attribute.
public FormClient OrderByUpdatedAt()
Returns
OrderByUpdatedAtDescending()
Sort response items by the UpdatedAt attribute. Use reverse order.
public FormClient OrderByUpdatedAtDescending()
Returns
PerPage(int)
Sets the number of items to be returned per page in the paginated response.
public PaginatedFormClient PerPage(int count)
Parameters
countintThe number of items to be returned per page.
Returns
- PaginatedFormClient
The current PaginatedFormClient instance.
WhereActive(bool)
Query response items by the Active attribute.
public FormClient WhereActive(bool value)
Parameters
valuebool
Returns
WhereId(string)
Query response items by the Id attribute.
public FormClient WhereId(string value)
Parameters
valuestring
Returns
WithId(string)
Creates a new instance of a Form client for a specific resource ID.
public FormClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- FormClient
A new instance of the resource client for the specified resource ID.