示例#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;
 }
示例#2
0
 public ChatAction(string content, string sender, DateTime sentTime, ChatChannel targetChannel) : base(content, sender, sentTime, targetChannel){}
示例#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();
 }
示例#4
0
 public ChatAction(string content, string sender, ChatChannel targetChannel) : base(content, sender, targetChannel) {}