Table of Contents

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

httpClient HttpClient
uri Uri

Methods

AddCustomParameter(string, string)

Adds a custom query parameter to the request URI.

public PaginatedGroupClient AddCustomParameter(string parameter, string value)

Parameters

parameter string

The name of the query parameter.

value string

The value of the query parameter.

Returns

PaginatedGroupClient

The current PaginatedGroupClient instance.

ClearParameters()

Removes the entire query string from the request URI.

public PaginatedGroupClient ClearParameters()

Returns

PaginatedGroupClient

The current PaginatedGroupClient instance.

Filter(string)

Adds a filter query parameter to the request.

public PaginatedGroupClient Filter(string filter)

Parameters

filter string

The filter criteria.

Returns

PaginatedGroupClient

The current PaginatedGroupClient instance.

Remarks

See Planning Center API documentation for details on supported filter values for this resource.

GetAsync(CancellationToken)

Fetches a paginated list of Group resources asynchronously.

public Task<GroupCollectionResponse> GetAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A 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

GroupClient

IncludeGroupType()

Include related GroupType resources in the response.

public GroupClient IncludeGroupType()

Returns

GroupClient

IncludeLocation()

Include related Location resources in the response.

public GroupClient IncludeLocation()

Returns

GroupClient

Offset(int)

Sets the item offset in the paginated response.

public PaginatedGroupClient Offset(int count)

Parameters

count int

The number of items to skip.

Returns

PaginatedGroupClient

The current PaginatedGroupClient instance.

OrderByChatEnabled()

Sort response items by the ChatEnabled attribute.

public GroupClient OrderByChatEnabled()

Returns

GroupClient

OrderByChatEnabledDescending()

Sort response items by the ChatEnabled attribute. Use reverse order.

public GroupClient OrderByChatEnabledDescending()

Returns

GroupClient

OrderByContactEmail()

Sort response items by the ContactEmail attribute.

public GroupClient OrderByContactEmail()

Returns

GroupClient

OrderByContactEmailDescending()

Sort response items by the ContactEmail attribute. Use reverse order.

public GroupClient OrderByContactEmailDescending()

Returns

GroupClient

OrderByCreatedAt()

Sort response items by the CreatedAt attribute.

public GroupClient OrderByCreatedAt()

Returns

GroupClient

OrderByCreatedAtDescending()

Sort response items by the CreatedAt attribute. Use reverse order.

public GroupClient OrderByCreatedAtDescending()

Returns

GroupClient

OrderByEnrollmentLimit()

Sort response items by the EnrollmentLimit attribute.

public GroupClient OrderByEnrollmentLimit()

Returns

GroupClient

OrderByEnrollmentLimitDescending()

Sort response items by the EnrollmentLimit attribute. Use reverse order.

public GroupClient OrderByEnrollmentLimitDescending()

Returns

GroupClient

OrderByListed()

Sort response items by the Listed attribute.

public GroupClient OrderByListed()

Returns

GroupClient

OrderByListedDescending()

Sort response items by the Listed attribute. Use reverse order.

public GroupClient OrderByListedDescending()

Returns

GroupClient

OrderByMembersAreConfidential()

Sort response items by the MembersAreConfidential attribute.

public GroupClient OrderByMembersAreConfidential()

Returns

GroupClient

OrderByMembersAreConfidentialDescending()

Sort response items by the MembersAreConfidential attribute. Use reverse order.

public GroupClient OrderByMembersAreConfidentialDescending()

Returns

GroupClient

OrderByMembershipsCount()

Sort response items by the MembershipsCount attribute.

public GroupClient OrderByMembershipsCount()

Returns

GroupClient

OrderByMembershipsCountDescending()

Sort response items by the MembershipsCount attribute. Use reverse order.

public GroupClient OrderByMembershipsCountDescending()

Returns

GroupClient

OrderByName()

Sort response items by the Name attribute.

public GroupClient OrderByName()

Returns

GroupClient

OrderByNameDescending()

Sort response items by the Name attribute. Use reverse order.

public GroupClient OrderByNameDescending()

Returns

GroupClient

PerPage(int)

Sets the number of items to be returned per page in the paginated response.

public PaginatedGroupClient PerPage(int count)

Parameters

count int

The number of items to be returned per page.

Returns

PaginatedGroupClient

The current PaginatedGroupClient instance.

WhereArchiveStatus(string)

Query response items by the ArchiveStatus attribute.

public GroupClient WhereArchiveStatus(string value)

Parameters

value string

Returns

GroupClient

WhereName(string)

Query response items by the Name attribute.

public GroupClient WhereName(string value)

Parameters

value string

Returns

GroupClient

WithId(string)

Creates a new instance of a Group client for a specific resource ID.

public GroupClient WithId(string id)

Parameters

id string

The ID of the resource to create a client for.

Returns

GroupClient

A new instance of the resource client for the specified resource ID.