public GameControllers(ILogger <GameControllers> logger, IConfiguration iConfig) { _settings = iConfig; _GameClient = RestService.For <LolGameClient>("https://euw1.api.riotgames.com/lol/match/v4/matches/"); _DragonClient = RestService.For <DragonClient>("http://ddragon.leagueoflegends.com/cdn/9.22.1/data/en_US"); _logger = logger; }
public HistoryController(ILogger <HistoryController> logger, IConfiguration iConfig) { _settings = iConfig; _HistoryClient = RestService.For <LolHistoryClient>("https://euw1.api.riotgames.com/lol/match/v4/"); _AccountClient = RestService.For <AccountClient>("https://euw1.api.riotgames.com/lol/summoner/v4/summoners/"); _DragonClient = RestService.For <DragonClient>("http://ddragon.leagueoflegends.com/cdn/9.22.1/data/en_US"); _logger = logger; }
public RotationController(ILogger <MasteryController> logger, IConfiguration iConfig) { _settings = iConfig; _RotationClient = RestService.For <LolRotationClient>("https://euw1.api.riotgames.com/lol/platform/v3/champion-rotations"); _DragonClient = RestService.For <DragonClient>("http://ddragon.leagueoflegends.com/cdn/9.22.1/data/en_US"); _logger = logger; InitClassMasteryControllerAsync(); }
public MasteryController(ILogger <MasteryController> logger, IConfiguration iConfig) { _settings = iConfig; _MasteryClient = RestService.For <LolMasteryClient>("https://euw1.api.riotgames.com/lol/champion-mastery/v4/"); _AccountClient = RestService.For <AccountClient>("https://euw1.api.riotgames.com/lol/summoner/v4/summoners/"); _DragonClient = RestService.For <DragonClient>("http://ddragon.leagueoflegends.com/cdn/9.3.1/data/en_US/"); _logger = logger; InitClassMasteryControllerAsync(); }