Exemplo n.º 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));
        }
Exemplo n.º 2
0
        public ILoLResponse GetChampionById(long id)
        {
            var queryUrl = ChampionsApiAdapter.GetChampionById(id, Region);

            queryUrl = AppendApiKey(queryUrl);

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