public PlayerIsHost(Models.SessionModel.Session session, string playerId) { this.playerId = playerId; this.session = session; }
protected AHostAction(AActionParams actionParams) : base(actionParams) { Session = actionParams.Session !; AddValidators(new AActionValidator[] { new PlayerIsHost(Session, PlayerId) }); }