Class PaginatedListClient
- Namespace
- Crews.PlanningCenter.Api.People.V2025_03_20
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with List collection resources.
public class PaginatedListClient : PaginatedResourceClient<List, ListResource, ListCollectionResponse, ListResponse>
- Inheritance
-
PaginatedListClient
- Inherited Members
Constructors
PaginatedListClient(HttpClient, Uri)
Client for interacting with List collection resources.
public PaginatedListClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public PaginatedListClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- PaginatedListClient
The current PaginatedListClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public PaginatedListClient ClearParameters()
Returns
- PaginatedListClient
The current PaginatedListClient instance.
Filter(string)
Adds a filter query parameter to the request.
public PaginatedListClient Filter(string filter)
Parameters
filterstringThe filter criteria.
Returns
- PaginatedListClient
The current PaginatedListClient instance.
Remarks
See Planning Center API documentation for details on supported filter values for this resource.
GetAsync(CancellationToken)
Fetches a paginated list of List resources asynchronously.
public Task<ListCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<ListCollectionResponse>
A task representing the asynchronous operation, containing a paginated list of List resources.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeCampus()
Include related Campus resources in the response.
public ListClient IncludeCampus()
Returns
IncludeCategory()
Include related Category resources in the response.
public ListClient IncludeCategory()
Returns
IncludeCreatedBy()
Include related CreatedBy resources in the response.
public ListClient IncludeCreatedBy()
Returns
IncludeMailchimpSyncStatus()
Include related MailchimpSyncStatus resources in the response.
public ListClient IncludeMailchimpSyncStatus()
Returns
IncludePeople()
Include related People resources in the response.
public ListClient IncludePeople()
Returns
IncludeRules()
Include related Rules resources in the response.
public ListClient IncludeRules()
Returns
IncludeShares()
Include related Shares resources in the response.
public ListClient IncludeShares()
Returns
IncludeUpdatedBy()
Include related UpdatedBy resources in the response.
public ListClient IncludeUpdatedBy()
Returns
Offset(int)
Sets the item offset in the paginated response.
public PaginatedListClient Offset(int count)
Parameters
countintThe number of items to skip.
Returns
- PaginatedListClient
The current PaginatedListClient instance.
OrderByActiveAutomationsCount()
Sort response items by the ActiveAutomationsCount attribute.
public ListClient OrderByActiveAutomationsCount()
Returns
OrderByActiveAutomationsCountDescending()
Sort response items by the ActiveAutomationsCount attribute. Use reverse order.
public ListClient OrderByActiveAutomationsCountDescending()
Returns
OrderByAutoRefreshFrequency()
Sort response items by the AutoRefreshFrequency attribute.
public ListClient OrderByAutoRefreshFrequency()
Returns
OrderByAutoRefreshFrequencyDescending()
Sort response items by the AutoRefreshFrequency attribute. Use reverse order.
public ListClient OrderByAutoRefreshFrequencyDescending()
Returns
OrderByAutomationsCount()
Sort response items by the AutomationsCount attribute.
public ListClient OrderByAutomationsCount()
Returns
OrderByAutomationsCountDescending()
Sort response items by the AutomationsCount attribute. Use reverse order.
public ListClient OrderByAutomationsCountDescending()
Returns
OrderByBatchCompletedAt()
Sort response items by the BatchCompletedAt attribute.
public ListClient OrderByBatchCompletedAt()
Returns
OrderByBatchCompletedAtDescending()
Sort response items by the BatchCompletedAt attribute. Use reverse order.
public ListClient OrderByBatchCompletedAtDescending()
Returns
OrderByCampusId()
Sort response items by the CampusId attribute.
public ListClient OrderByCampusId()
Returns
OrderByCampusIdDescending()
Sort response items by the CampusId attribute. Use reverse order.
public ListClient OrderByCampusIdDescending()
Returns
OrderByCampusesName()
Sort response items by the Campuses.Name attribute.
public ListClient OrderByCampusesName()
Returns
OrderByCampusesNameDescending()
Sort response items by the Campuses.Name attribute. Use reverse order.
public ListClient OrderByCampusesNameDescending()
Returns
OrderByCreatedAt()
Sort response items by the CreatedAt attribute.
public ListClient OrderByCreatedAt()
Returns
OrderByCreatedAtDescending()
Sort response items by the CreatedAt attribute. Use reverse order.
public ListClient OrderByCreatedAtDescending()
Returns
OrderByListCategoriesName()
Sort response items by the ListCategories.Name attribute.
public ListClient OrderByListCategoriesName()
Returns
OrderByListCategoriesNameDescending()
Sort response items by the ListCategories.Name attribute. Use reverse order.
public ListClient OrderByListCategoriesNameDescending()
Returns
OrderByListCategoryId()
Sort response items by the ListCategoryId attribute.
public ListClient OrderByListCategoryId()
Returns
OrderByListCategoryIdDescending()
Sort response items by the ListCategoryId attribute. Use reverse order.
public ListClient OrderByListCategoryIdDescending()
Returns
OrderByName()
Sort response items by the Name attribute.
public ListClient OrderByName()
Returns
OrderByNameDescending()
Sort response items by the Name attribute. Use reverse order.
public ListClient OrderByNameDescending()
Returns
OrderByNameOrDescription()
Sort response items by the NameOrDescription attribute.
public ListClient OrderByNameOrDescription()
Returns
OrderByNameOrDescriptionDescending()
Sort response items by the NameOrDescription attribute. Use reverse order.
public ListClient OrderByNameOrDescriptionDescending()
Returns
OrderByRefreshedAt()
Sort response items by the RefreshedAt attribute.
public ListClient OrderByRefreshedAt()
Returns
OrderByRefreshedAtDescending()
Sort response items by the RefreshedAt attribute. Use reverse order.
public ListClient OrderByRefreshedAtDescending()
Returns
OrderByStarred()
Sort response items by the Starred attribute.
public ListClient OrderByStarred()
Returns
OrderByStarredDescending()
Sort response items by the Starred attribute. Use reverse order.
public ListClient OrderByStarredDescending()
Returns
OrderByTotalPeople()
Sort response items by the TotalPeople attribute.
public ListClient OrderByTotalPeople()
Returns
OrderByTotalPeopleDescending()
Sort response items by the TotalPeople attribute. Use reverse order.
public ListClient OrderByTotalPeopleDescending()
Returns
OrderByUpdatedAt()
Sort response items by the UpdatedAt attribute.
public ListClient OrderByUpdatedAt()
Returns
OrderByUpdatedAtDescending()
Sort response items by the UpdatedAt attribute. Use reverse order.
public ListClient OrderByUpdatedAtDescending()
Returns
PerPage(int)
Sets the number of items to be returned per page in the paginated response.
public PaginatedListClient PerPage(int count)
Parameters
countintThe number of items to be returned per page.
Returns
- PaginatedListClient
The current PaginatedListClient instance.
WhereBatchCompletedAt(DateTime)
Query response items by the BatchCompletedAt attribute.
public ListClient WhereBatchCompletedAt(DateTime value)
Parameters
valueDateTime
Returns
WhereCreatedAt(DateTime)
Query response items by the CreatedAt attribute.
public ListClient WhereCreatedAt(DateTime value)
Parameters
valueDateTime
Returns
WhereId(string)
Query response items by the Id attribute.
public ListClient WhereId(string value)
Parameters
valuestring
Returns
WhereName(string)
Query response items by the Name attribute.
public ListClient WhereName(string value)
Parameters
valuestring
Returns
WhereUpdatedAt(DateTime)
Query response items by the UpdatedAt attribute.
public ListClient WhereUpdatedAt(DateTime value)
Parameters
valueDateTime
Returns
WithId(string)
Creates a new instance of a List client for a specific resource ID.
public ListClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- ListClient
A new instance of the resource client for the specified resource ID.