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

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 8.2.23
public static class ChatMessageHelper

The ChatMessageHelper type exposes the following members.

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.
See Also