Click or drag to resize
ChatMessageHelperBuildNewChatMessage Method
Creates new ChatMessage info from the specified parameters. This message is not whisper.

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 8.2.23
Syntax
C#
public static ChatMessageInfo BuildNewChatMessage(
	string messageText,
	int roomID,
	Nullable<int> chatUserID,
	ChatMessageTypeEnum systemMessageType
)

Parameters

messageText
Type: SystemString
Message text
roomID
Type: SystemInt32
Room id
chatUserID
Type: SystemNullableInt32
Sender of this message (null if message is system).
systemMessageType
Type: CMS.ChatChatMessageTypeEnum
Type of this message

Return Value

Type: ChatMessageInfo
ChatMessageInfo with properties set. ReceipientID is null.
See Also