コード例 #1
0
 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;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 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();
 }
コード例 #4
0
 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();
 }