ChatMessageHelperGetSystemMessageText Method |
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$}
Namespace: CMS.ChatAssembly: CMS.Chat (in CMS.Chat.dll) Version: 9.0.0
Syntaxpublic static string GetSystemMessageText(
ChatMessageTypeEnum messageType,
params string[] args
)
Parameters
- messageType
- Type: CMS.ChatChatMessageTypeEnum
Type of the system message. - args
- Type: SystemString
Optional params which will be included in the macro in form of |replace{{i}}(with)param. i is counter and starts from 0
Return Value
Type:
StringMacro containing text of the system message
See Also