Пример #1
0
 public void UpdateValues(PartialPlayerInfo newStats)
 {
     Kills          = newStats.Kills;
     Deaths         = newStats.Deaths;
     Assists        = newStats.Assists;
     CS             = newStats.CS;
     Gold           = newStats.Gold;
     VisionScore    = newStats.RealVisionScore;
     GameTime       = newStats.Duration;
     TotalTeamKills = newStats.TotalTeamKills;
     Games          = newStats.Games;
 }
Пример #2
0
 public PlayerStatsEntity(PartialPlayerInfo newStats, Guid summonerId, Guid seasonInfoId)
 {
     Id             = Guid.NewGuid();
     SummonerId     = summonerId;
     Kills          = newStats.Kills;
     Deaths         = newStats.Deaths;
     Assists        = newStats.Assists;
     CS             = newStats.CS;
     Gold           = newStats.Gold;
     VisionScore    = newStats.RealVisionScore;
     GameTime       = newStats.Duration;
     TotalTeamKills = newStats.TotalTeamKills;
     Games          = newStats.Games;
     SeasonInfoId   = seasonInfoId;
 }