public SerializableRoundParticipant(IRoundParticipant participant) { Player = new Player { Id = participant.Player.Id, Name = participant.Player.Name }; IsImposter = participant.IsImposter; Answer = participant.Answer; Accusation = participant.Accusation != null ? new Accusation(participant.Accusation.PlayerId, participant.Accusation.PlayerName, participant.Accusation.Wager) : null; ScoredPoints = participant.ScoredPoints; }
public AccusationStatisticsParticipant(IRoundParticipant participant, IEnumerable <string> accusedByNames) { Participant = participant; AccusedByNames = accusedByNames; }
public Accusation(IRoundParticipant participant, int wager) { PlayerId = participant.Player.Id; PlayerName = participant.Player.Name; Wager = wager; }