示例#1
0
        public async Task <ILoLResponse> GetChampionsAsync()
        {
            var queryUrl = ChampionsApiAdapter.GetChampions(Region);

            queryUrl = AppendApiKey(queryUrl);

            return(await WebUtilFunctions.GetEndpointResponseFromUrlAsync <ChampionsResponse, ErrorResponse>(Handler, queryUrl));
        }
示例#2
0
        public ILoLResponse GetChampions()
        {
            var queryUrl = ChampionsApiAdapter.GetChampions(Region);

            queryUrl = AppendApiKey(queryUrl);

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