Class PaginatedFormClient
- Namespace
- Crews.PlanningCenter.Api.People.V2019_01_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
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
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
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
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
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.