Ejemplo n.º 1
0
        public TeamService(
            ILeagueApiConfiguration config)
            : base(config, VersionEnum.V2Rev3, "team")
        {
            Models.Team.CreateMap(AutoMapperService);

#if DEBUG
            AutoMapperService.AssertConfigurationIsValid();
#endif
        }
Ejemplo n.º 2
0
        public ChampionService(
            ILeagueApiConfiguration config)
            : base(config, VersionEnum.V1Rev2, "champion")
        {
            Models.Champion.CreateMap(AutoMapperService);

#if DEBUG
            AutoMapperService.AssertConfigurationIsValid();
#endif
        }
Ejemplo n.º 3
0
        public LeagueService(
            ILeagueApiConfiguration config)
            : base(config, VersionEnum.V2Rev4, "league")
        {
            Models.League.CreateMap(AutoMapperService);

#if DEBUG
            AutoMapperService.AssertConfigurationIsValid();
#endif
        }
Ejemplo n.º 4
0
        public GameService(
            ILeagueApiConfiguration config)
            : base(config, VersionEnum.V1Rev3, "game")
        {
            Models.Game.CreateMap(AutoMapperService);

#if DEBUG
            AutoMapperService.AssertConfigurationIsValid();
#endif
        }
Ejemplo n.º 5
0
        public StatsService(
            ILeagueApiConfiguration config)
            : base(config, VersionEnum.V1Rev3, "stats")
        {
            RankedStats.CreateMap(AutoMapperService);
            PlayerStatsSummary.CreateMap(AutoMapperService);

#if DEBUG
            AutoMapperService.AssertConfigurationIsValid();
#endif
        }
Ejemplo n.º 6
0
        public SummonerService(
            ILeagueApiConfiguration config)
            : base(config, VersionEnum.V1Rev4, "summoner")
        {
            MasteryPage.CreateMap(AutoMapperService);
            RunePage.CreateMap(AutoMapperService);
            Models.Summoner.CreateMap(AutoMapperService);

#if DEBUG
            AutoMapperService.AssertConfigurationIsValid();
#endif
        }
Ejemplo n.º 7
0
        public StaticService(
            ILeagueApiConfiguration config)
            : base(config, VersionEnum.V1Rev2, "static-data", false)
        {
            ChampionList.CreateMap(AutoMapperService);
            ItemList.CreateMap(AutoMapperService);
            MasteryList.CreateMap(AutoMapperService);
            Realm.CreateMap(AutoMapperService);
            RuneList.CreateMap(AutoMapperService);
            SummonerSpellList.CreateMap(AutoMapperService);

#if DEBUG
            AutoMapperService.AssertConfigurationIsValid();
#endif
        }