Beispiel #1
0
        public async Task <IApiResponse <List <ClanBattle> > > GetBattlesResponseAsync(string clanTag, ClanBattleFilter clanBattleFilter = null)
        {
            Ensure.ArgumentNotNullOrEmptyString(clanTag, nameof(clanTag));

            IApiResponse <List <ClanBattle> > apiResponse =
                await _restApiClient.GetApiResponseAsync <List <ClanBattle> >(UrlPathBuilder.GetClanBattleUrl(clanTag), clanBattleFilter?.ToQueryParams());

            return(apiResponse);
        }