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; }
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; }