private static Task<IEnumerable<IGame>> GetRecentGames( IApiModel leagueModel, long summonerId, RegionEnum? region = null) { if (leagueModel == null) throw new ArgumentNullException("leagueModel"); var gameService = new GameService(leagueModel.ApiConfiguration); return gameService.GetRecentGamesBySummonerIdAsync(summonerId, region); }
private void Init() { Champion = new ChampionService(LeagueApiConfiguration); Game = new GameService(LeagueApiConfiguration); League = new LeagueService(LeagueApiConfiguration); Stats = new StatsService(LeagueApiConfiguration); Summoner = new SummonerService(LeagueApiConfiguration); Team = new TeamService(LeagueApiConfiguration); Static = new StaticService(LeagueApiConfiguration); }