Esempio n. 1
0
 /// <summary>
 /// Creates a new ChatMessage object with the given content, sender, sentTime, and targetChannel.
 /// </summary>
 /// <param name="content">The actual content of the message.</param>
 /// <param name="sender">Nick of who sent the message</param>
 /// <param name="sentTime">Time stamp when the message was sent.</param>
 /// <param name="targetChannel">The channel the message was sent to.</param>
 public ChatMessage(string content, string sender, DateTime sentTime, ChatChannel targetChannel) : base (content)
 {
     Sender = sender;
     SentTime = sentTime;
     TargetChannel = targetChannel;
 }
Esempio n. 2
0
 public ChatAction(string content, string sender, DateTime sentTime, ChatChannel targetChannel) : base(content, sender, sentTime, targetChannel){}
Esempio n. 3
0
 /// <summary>
 /// Creates a new ChatMessage object with the given content, sender, and targetChannel.
 /// SentTime is initialized to the current time at creation.
 /// </summary>
 /// <param name="content"></param>
 /// <param name="sender"></param>
 /// <param name="targetChannel"></param>
 public ChatMessage(string content, string sender, ChatChannel targetChannel) : base (content)
 {
     Sender = sender;
     TargetChannel = targetChannel;
     SentTime = new DateTime();
 }
Esempio n. 4
0
 public ChatAction(string content, string sender, ChatChannel targetChannel) : base(content, sender, targetChannel) {}