public StatsEntry(EndOfGameStats game, PlayerStatsSummary stats) { GameMode = game.GameMode; GameType = game.GameType; Summary = stats; TimeStamp = game.TimeStamp; }
public StatsService( ILeagueApiConfiguration config) : base(config, VersionEnum.V1Rev3, "stats") { RankedStats.CreateMap(AutoMapperService); PlayerStatsSummary.CreateMap(AutoMapperService); #if DEBUG AutoMapperService.AssertConfigurationIsValid(); #endif }
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); }
public PlayerEntry(PlayerStatsSummary stats) : this() { Name = stats.SummonerName; Id = stats.UserId; }