예제 #1
0
        public async Task <ILoLResponse> GetChampionByIdAsync(long id)
        {
            var queryUrl = ChampionsApiAdapter.GetChampionById(id, Region);

            queryUrl = AppendApiKey(queryUrl);

            return(await WebUtilFunctions.GetEndpointResponseFromUrlAsync <ChampionsResponse, ErrorResponse>(Handler, queryUrl));
        }
예제 #2
0
        public ILoLResponse GetChampionById(long id)
        {
            var queryUrl = ChampionsApiAdapter.GetChampionById(id, Region);

            queryUrl = AppendApiKey(queryUrl);

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