Class TeamLeaderClient
- Namespace
- Crews.PlanningCenter.Api.Services.V2018_08_01
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the TeamLeader resource.
public class TeamLeaderClient : SingletonResourceClient<TeamLeader, TeamLeaderResource, TeamLeaderResponse>
- Inheritance
-
TeamLeaderClient
- Inherited Members
Constructors
TeamLeaderClient(HttpClient, Uri)
Client for interacting with the TeamLeader resource.
public TeamLeaderClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
People
Associated People.
public PaginatedPersonClient People { get; }
Property Value
Team
Associated Team.
public TeamClient Team { get; }
Property Value
Methods
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public TeamLeaderClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- TeamLeaderClient
The current TeamLeaderClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public TeamLeaderClient ClearParameters()
Returns
- TeamLeaderClient
The current TeamLeaderClient instance.
GetAsync(CancellationToken)
Fetches the TeamLeader resource asynchronously.
public Task<TeamLeaderResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<TeamLeaderResponse>
A task representing the asynchronous operation, containing the TeamLeader resource.
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()