public static SummonerGames GetGamesBySummonerId(string summonerId, string region) { string _requestURL = "https://" + region + ".api.riotgames.com/lol/match/v3/matchlists/by-account/" + summonerId + "/recent?api_key=" + Key; //Get the summoner using the summoner by name api command string urlResponseString = GetUrlResponse(_requestURL); var jsonGames = JObject.Parse(urlResponseString); SummonerGames sg = JsonConvert.DeserializeObject <SummonerGames>(jsonGames.ToString()); return(sg); }
/// <summary>Initializes a new instance of the <see cref="SummonerDataAggregator"/> class.</summary> public SummonerDataAggregator(SummonerGames sg) { SummonerGamesData = sg; }