Class PaginatedGroupClient
- Namespace
- Crews.PlanningCenter.Api.Groups.V2023_07_10
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with Group collection resources.
public class PaginatedGroupClient : PaginatedResourceClient<Group, GroupResource, GroupCollectionResponse, GroupResponse>
- Inheritance
-
PaginatedGroupClient
- Inherited Members
Constructors
PaginatedGroupClient(HttpClient, Uri)
Client for interacting with Group collection resources.
public PaginatedGroupClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
GetAsync(CancellationToken)
Fetches a paginated list of Group resources asynchronously.
public Task<GroupCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<GroupCollectionResponse>
A task representing the asynchronous operation, containing a paginated list of Group resources.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeEnrollment()
Include related Enrollment resources in the response.
public GroupClient IncludeEnrollment()
Returns
IncludeGroupType()
Include related GroupType resources in the response.
public GroupClient IncludeGroupType()
Returns
IncludeLocation()
Include related Location resources in the response.
public GroupClient IncludeLocation()
Returns
OrderByChatEnabled()
Sort response items by the ChatEnabled attribute.
public GroupClient OrderByChatEnabled()
Returns
OrderByChatEnabledDescending()
Sort response items by the ChatEnabled attribute. Use reverse order.
public GroupClient OrderByChatEnabledDescending()
Returns
OrderByContactEmail()
Sort response items by the ContactEmail attribute.
public GroupClient OrderByContactEmail()
Returns
OrderByContactEmailDescending()
Sort response items by the ContactEmail attribute. Use reverse order.
public GroupClient OrderByContactEmailDescending()
Returns
OrderByCreatedAt()
Sort response items by the CreatedAt attribute.
public GroupClient OrderByCreatedAt()
Returns
OrderByCreatedAtDescending()
Sort response items by the CreatedAt attribute. Use reverse order.
public GroupClient OrderByCreatedAtDescending()
Returns
OrderByEnrollmentLimit()
Sort response items by the EnrollmentLimit attribute.
public GroupClient OrderByEnrollmentLimit()
Returns
OrderByEnrollmentLimitDescending()
Sort response items by the EnrollmentLimit attribute. Use reverse order.
public GroupClient OrderByEnrollmentLimitDescending()
Returns
OrderByListed()
Sort response items by the Listed attribute.
public GroupClient OrderByListed()
Returns
OrderByListedDescending()
Sort response items by the Listed attribute. Use reverse order.
public GroupClient OrderByListedDescending()
Returns
OrderByMembersAreConfidential()
Sort response items by the MembersAreConfidential attribute.
public GroupClient OrderByMembersAreConfidential()
Returns
OrderByMembersAreConfidentialDescending()
Sort response items by the MembersAreConfidential attribute. Use reverse order.
public GroupClient OrderByMembersAreConfidentialDescending()
Returns
OrderByMembershipsCount()
Sort response items by the MembershipsCount attribute.
public GroupClient OrderByMembershipsCount()
Returns
OrderByMembershipsCountDescending()
Sort response items by the MembershipsCount attribute. Use reverse order.
public GroupClient OrderByMembershipsCountDescending()
Returns
OrderByName()
Sort response items by the Name attribute.
public GroupClient OrderByName()
Returns
OrderByNameDescending()
Sort response items by the Name attribute. Use reverse order.
public GroupClient OrderByNameDescending()
Returns
WhereArchiveStatus(string)
Query response items by the ArchiveStatus attribute.
public GroupClient WhereArchiveStatus(string value)
Parameters
valuestring
Returns
WhereName(string)
Query response items by the Name attribute.
public GroupClient WhereName(string value)
Parameters
valuestring
Returns
WithId(string)
Creates a new instance of a Group client for a specific resource ID.
public GroupClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- GroupClient
A new instance of the resource client for the specified resource ID.