public Card(MatchMinute matchMinute, Guid teamId, Guid playerId, CardType cardType) { this.MatchMinute = matchMinute; this.TeamId = teamId; this.PlayerId = playerId; this.CardType = cardType; }
public Penalty(MatchMinute matchMinute, Guid playerId, bool isGoal, Game game, Guid teamId) { this.MatchMinute = matchMinute; this.TeamId = teamId; this.PlayerId = playerId; this.IsGoal = isGoal; if (isGoal) { game.Protocol.Goals.Add(new Goal(matchMinute, teamId, playerId)); } }
public Goal(MatchMinute matchMinute, Guid teamId, Guid playerId) { if (matchMinute == null || teamId == null || playerId == null) { throw new NullReferenceException(); } else { this.MatchMinute = matchMinute; this.TeamId = teamId; this.PlayerId = playerId; } }
public Assist(MatchMinute matchMinute, Guid teamId, Guid playerId) { this.MatchMinute = matchMinute; this.TeamId = teamId; this.PlayerId = playerId; }