예제 #1
0
 public StatsEntry(EndOfGameStats game, PlayerStatsSummary stats)
 {
     GameMode  = game.GameMode;
     GameType  = game.GameType;
     Summary   = stats;
     TimeStamp = game.TimeStamp;
 }
예제 #2
0
        public StatsService(
            ILeagueApiConfiguration config)
            : base(config, VersionEnum.V1Rev3, "stats")
        {
            RankedStats.CreateMap(AutoMapperService);
            PlayerStatsSummary.CreateMap(AutoMapperService);

#if DEBUG
            AutoMapperService.AssertConfigurationIsValid();
#endif
        }
예제 #3
0
        public async void RetrievePlayerStatsSummaryTest()
        {
            PlayerStatsSummaryList playerStats = await golf1052.RetrievePlayerStatsSummaries(CreepScore.Season.Season3);

            PlayerStatsSummary normalStats = null;

            foreach (PlayerStatsSummary stats in playerStats.playerStatSummaries)
            {
                if (stats.playerStatSummaryType == GameConstants.PlayerStatSummaryType.Unranked5)
                {
                    normalStats = stats;
                    break;
                }
            }

            Assert.Equal(26040955, playerStats.summonerId);
            Assert.Equal(483, normalStats.wins);
        }
예제 #4
0
 public PlayerEntry(PlayerStatsSummary stats)
     : this()
 {
     Name = stats.SummonerName;
     Id   = stats.UserId;
 }