Table of Contents

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

httpClient HttpClient
uri Uri

Properties

People

Associated People.

public PaginatedPersonClient People { get; }

Property Value

PaginatedPersonClient

Team

Associated Team.

public TeamClient Team { get; }

Property Value

TeamClient

Methods

GetAsync(CancellationToken)

Fetches the TeamLeader resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A 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

TeamLeaderClient

IncludeTeam()

Include related Team resources in the response.

public TeamLeaderClient IncludeTeam()

Returns

TeamLeaderClient