Пример #1
0
        public ILoLResponse GetSummonerByName(string summonerName)
        {
            var queryUrl = SummonerApiAdapter.GetSummonerByNameRequestUrl(summonerName, Region);

            queryUrl = AppendApiKey(queryUrl);

            return(WebUtilFunctions.GetEndpointResponseFromUrl <SummonerResponse, ErrorResponse>(Handler, queryUrl));
        }
Пример #2
0
        public async Task <ILoLResponse> GetSummonerBySummonerIdAsync(long summonerId)
        {
            var queryUrl = SummonerApiAdapter.GetSummonerBySummonerIdRequestUrl(summonerId, Region);

            queryUrl = AppendApiKey(queryUrl);

            return(await WebUtilFunctions.GetEndpointResponseFromUrlAsync <SummonerResponse, ErrorResponse>(Handler, queryUrl));
        }
Пример #3
0
        public ILoLResponse GetSummonerByAccountId(long accountId)
        {
            var queryUrl = SummonerApiAdapter.GetSummonerByAccountIdRequestUrl(accountId, Region);

            queryUrl = AppendApiKey(queryUrl);

            return(WebUtilFunctions.GetEndpointResponseFromUrl <SummonerResponse, ErrorResponse>(Handler, queryUrl));
        }