Class PaginatedTeamLeaderClient
- Namespace
- Crews.PlanningCenter.Api.Services.V2018_08_01
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with TeamLeader collection resources.
public class PaginatedTeamLeaderClient : PaginatedResourceClient<TeamLeader, TeamLeaderResource, TeamLeaderCollectionResponse, TeamLeaderResponse>
- Inheritance
-
PaginatedResourceClient<TeamLeader, TeamLeaderResource, TeamLeaderCollectionResponse, TeamLeaderResponse>PaginatedTeamLeaderClient
- Inherited Members
Constructors
PaginatedTeamLeaderClient(HttpClient, Uri)
Client for interacting with TeamLeader collection resources.
public PaginatedTeamLeaderClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public PaginatedTeamLeaderClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- PaginatedTeamLeaderClient
The current PaginatedTeamLeaderClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public PaginatedTeamLeaderClient ClearParameters()
Returns
- PaginatedTeamLeaderClient
The current PaginatedTeamLeaderClient instance.
Filter(string)
Adds a filter query parameter to the request.
public PaginatedTeamLeaderClient Filter(string filter)
Parameters
filterstringThe filter criteria.
Returns
- PaginatedTeamLeaderClient
The current PaginatedTeamLeaderClient instance.
Remarks
See Planning Center API documentation for details on supported filter values for this resource.
GetAsync(CancellationToken)
Fetches a paginated list of TeamLeader resources asynchronously.
public Task<TeamLeaderCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<TeamLeaderCollectionResponse>
A task representing the asynchronous operation, containing a paginated list of TeamLeader resources.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludePeople()
Include related People resources in the response.
public TeamLeaderClient IncludePeople()
Returns
IncludeTeam()
Include related Team resources in the response.
public TeamLeaderClient IncludeTeam()
Returns
Offset(int)
Sets the item offset in the paginated response.
public PaginatedTeamLeaderClient Offset(int count)
Parameters
countintThe number of items to skip.
Returns
- PaginatedTeamLeaderClient
The current PaginatedTeamLeaderClient instance.
OrderByFirstName()
Sort response items by the FirstName attribute.
public TeamLeaderClient OrderByFirstName()
Returns
OrderByFirstNameDescending()
Sort response items by the FirstName attribute. Use reverse order.
public TeamLeaderClient OrderByFirstNameDescending()
Returns
OrderByLastName()
Sort response items by the LastName attribute.
public TeamLeaderClient OrderByLastName()
Returns
OrderByLastNameDescending()
Sort response items by the LastName attribute. Use reverse order.
public TeamLeaderClient OrderByLastNameDescending()
Returns
PerPage(int)
Sets the number of items to be returned per page in the paginated response.
public PaginatedTeamLeaderClient PerPage(int count)
Parameters
countintThe number of items to be returned per page.
Returns
- PaginatedTeamLeaderClient
The current PaginatedTeamLeaderClient instance.
WithId(string)
Creates a new instance of a TeamLeader client for a specific resource ID.
public TeamLeaderClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- TeamLeaderClient
A new instance of the resource client for the specified resource ID.