public Quacket(User sender, bool isErrorMessage, bool isDisconnectionMessage, bool isConnectionMessage) { this.Sender = sender; this.IsErrorMessage = isErrorMessage; this.TimeSent = DateTime.Now.ToUniversalTime(); this.IsDisconnectionMessage = isDisconnectionMessage; this.IsConnectionMessage = isConnectionMessage; }
public Quacket(User sender, bool isErrorMessage, bool isDisconnectionMessage, bool isConnectionMessage, bool isServerMessage, User recipient, string sentMessage) { this.Sender = sender; this.IsErrorMessage = isErrorMessage; this.TimeSent = DateTime.Now.ToUniversalTime(); this.IsDisconnectionMessage = isDisconnectionMessage; this.IsConnectionMessage = isConnectionMessage; this.IsServerMessage = isServerMessage; this.Recipient = recipient; this.SentMessage = sentMessage; }