Esempio n. 1
0
        private async Task <LadderApiResponse> HandleLadderRequest(string url)
        {
            string json = await _externalService.ExecuteGetAsync(url);

            if (json != null)
            {
                return(JsonConvert.DeserializeObject <LadderApiResponse>(json));
            }
            return(null);
        }
Esempio n. 2
0
        private async Task <List <LeagueApiModel> > FetchLeaguesAsync()
        {
            var json = await _externalService.ExecuteGetAsync(LeagesUrl);

            return(JsonConvert.DeserializeObject <List <LeagueApiModel> >(json));
        }