Click or drag to resize
ChatMessageHelper Class
Helper class for chat messages.
Inheritance Hierarchy
SystemObject
  CMS.ChatChatMessageHelper

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 10.0.0
Syntax
C#
public static class ChatMessageHelper

The ChatMessageHelper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberBuildNewChatMessage
Creates new ChatMessage info from the specified parameters. This message is not whisper.
Public methodStatic memberGetLatestMessages
Gets latest messages from DB.
Public methodStatic memberGetSystemMessageText
Gets default text representation of the system message. It is a macro which needs to be resolved before sending to the client. Exception is thrown if messageType is not a system message. Example of a returned value: {$chat.system.userhaschangednickname|(replace){0}(with)guest_42|(replace){1}(with)lalalal$}
Public methodStatic memberInsertSystemMessage
Inserts system message to the room with default translation and optional params specified as args.
Public methodStatic memberPerformBadWordsCheck
Perform bad words check on message text
Public methodStatic memberPostMessage
Inserts new message to room. Message is of type ClassicMessage.
Public methodStatic memberPostMessageToUser
Inserts new whisper message to room.
Public methodStatic memberRejectMessage
Rejects passed message.
Top
See Also