Exemplo n.º 1
0
        public async Task <ApiResponse <Tournament> > GetTournamentResponseAsync(string tournamentTag)
        {
            Ensure.ArgumentNotNullOrEmptyString(tournamentTag, nameof(tournamentTag));

            var apiResponse = await _restApiClient.GetApiResponseAsync <Tournament>(UrlPathBuilder.GetTournamentUrl(tournamentTag));

            return(apiResponse);
        }
        public async Task <ApiResponse <List <Tournament> > > GetTournamentsResponseAsync(string[] tournamentTags, TournamentSearchFilter tournamentSearchFilter = null)
        {
            Ensure.ArgumentNotNullOrEmptyEnumerable(tournamentTags, nameof(tournamentTags));

            var apiResponse = await _restApiClient.GetApiResponseAsync <List <Tournament> >(UrlPathBuilder.GetTournamentUrl(tournamentTags), tournamentSearchFilter?.ToQueryParams());

            return(apiResponse);
        }