public Task <ContestantResponse> GetContestant(Guid sessionId, string contestantId, ChampionQueryOptions options = null,
                                                       CancellationToken cancellationToken = default(CancellationToken))
        {
            var parameters = options.ToParameters();

            return(apiConnection.Get <ContestantResponse>($"/sessions/{sessionId}/contest/contestants/{contestantId}", parameters, HttpMessageTransformer, cancellationToken));
        }
Beispiel #2
0
        public async Task <ContestantResponse> GetContestant(Guid sessionId, string contestantId, ChampionQueryOptions options = null)
        {
            var parameters = options.ToParameters();

            return(await Client.Get <ContestantResponse>($"{ApiKeys.Endpoint}sessions/{sessionId}/contest/contestants/{contestantId}", ApiKeys.ApiToken, parameters));
        }