Class TeamLeaderClient
- Namespace
- Crews.PlanningCenter.Api.Services.V2018_11_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
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()