Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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;
 }