ChatHelper Methods |
The ChatHelper type exposes the following members.
Name | Description | |
---|---|---|
GetCMSDeskChatUserField(Control, ChatUserInfo) |
Gets string representation which can be used to display chat user in CMS Desk.
If user is not anonymous, returned string is a HTML code which contains anchor to open user's details in new window.
If user is anonymous, returned string will be simply his nickname.
Nickname will be always HTML encoded.
| |
GetCMSDeskChatUserField(Control, Int32, String, Boolean) |
Gets string representation which can be used to display chat user in CMS Desk.
If user is not anonymous, returned string is a HTML code which contains anchor to open user's details in new window.
If user is anonymous, returned string will be simply his nickname.
Nickname will be always HTML encoded.
| |
GetDocumentAbsoluteUrl |
Gets absolute URL from relative document path (if given path is not empty).
| |
GetEnumTEnum, TUnderlayingType |
Gets Enum from its underlying type. If the specified value doesn't have its representation in the enum, defaultValue is returned.
Exception is thrown if TEnum is not Enum.
| |
GetChatRoomWindowURL |
Returns chat room window url from global chat settings
| |
GetRoomIdFromQuery |
Get room ID from query or return original room ID.
| |
GetWebpartLoadingDiv |
Get webpart's loading div which is showed when data are loaded.
| |
GetWebpartTransformation |
Get webpart's transformation
| |
HasCurrentUserPermission |
Checks if current user (CMSUser) has permission to perform specified chat-related action.
| |
HasUserPermission |
Checks if specified user (CMSUser) has permission to perform specified chat-related action.
| |
CheckNameForBadWords |
Throws ChatBadWordsException if there are some bad words in name.
| |
CheckOperationForFlooding |
Checks if specified operation happened to early after the previous call. If it happened to early (earlier than timespan specified in settings),
it is considered as flooding and operation should be stopped.
| |
IsSupportChatPanelEnabled |
Adds Support box to the passed panel. It should be called in SiteManager's and CMSDesk's Page_Load.
| |
LogChatActivity(ChatActivityTypeEnum) |
Logs activity with type specified by activityType.
Title is empty.
| |
LogChatActivity(ChatActivityTypeEnum, String) |
Logs activity with type specified by activityType.
Title is set to
| |
RegisterChatAJAXProxy |
Registers AJAX proxy which can be used to call ChatService.svc from javascript.
| |
RegisterChatManager |
Registers ChatManager.js and support scripts.
| |
RegisterChatNotificationManager |
Registers Chat sound manager used for playing sound notifications.
| |
RegisterChatSupportAJAXProxy |
Registers AJAX proxy which can be used to call ChatSupportService.svc from javascript.
| |
RegisterChatSupportManager |
Registers ChatSupportManager and support scripts.
| |
RegisterStylesheet(Page) |
Registers CSS stylesheet. If page inherits CMSChatPage, CMSDesk stylesheet will be used instead of livesite stylesheet.
| |
RegisterStylesheet(Page, Boolean) |
Registers CSS stylesheet. If cmsDeskStyle is true, CMSDesk stylesheet will be used instead of livesite stylesheet.
The CMS desk stylesheet is bootstrap for support dialog, old css otherwise.
|