public ChatMessage(ChatMessageItem message) { this.message = message; }
/// <summary>Creates a HTML writable object from a ChatMessageItem</summary> /// <param name="item"></param> public GuiMessageItem(ChatMessageItem item) { timeStamp = item.Time; nickName = item.FromUser.Nick; message = item.ChatMessage; }
/// <summary>Formats and writes the text on a Chat Event to the GUI</summary> /// <param name="chatMessageItem">The chat message item that was received</param> public void OnChatMessageArrived(ChatMessageItem chatMessageItem) { var chatMessage = new ChatMessage(chatMessageItem); AppendHTMLToWebBrowser(chatWebBrowser, chatMessage); }