Click or drag to resize
ChatHelper Methods

The ChatHelper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberGetCMSDeskChatUserField(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.
Public methodStatic memberGetCMSDeskChatUserField(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.
Public methodStatic memberGetDocumentAbsoluteUrl
Gets absolute URL from relative document path (if given path is not empty).
Public methodStatic memberCode exampleGetEnumTEnum, 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.
Public methodStatic memberGetChatRoomWindowURL
Returns chat room window url from global chat settings
Public methodStatic memberGetRoomIdFromQuery
Get room ID from query or return original room ID.
Public methodStatic memberGetWebpartLoadingDiv
Get webpart's loading div which is showed when data are loaded.
Public methodStatic memberGetWebpartTransformation
Get webpart's transformation
Public methodStatic memberHasCurrentUserPermission
Checks if current user (CMSUser) has permission to perform specified chat-related action.
Public methodStatic memberHasUserPermission
Checks if specified user (CMSUser) has permission to perform specified chat-related action.
Public methodStatic memberCheckNameForBadWords
Throws ChatBadWordsException if there are some bad words in name.
Public methodStatic memberCheckOperationForFlooding
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.
Public methodStatic memberIsSupportChatPanelEnabled
Adds Support box to the passed panel. It should be called in SiteManager's and CMSDesk's Page_Load.
Public methodStatic memberLogChatActivity(ChatActivityTypeEnum)
Logs activity with type specified by activityType. Title is empty.
Public methodStatic memberLogChatActivity(ChatActivityTypeEnum, String)
Logs activity with type specified by activityType. Title is set to
Public methodStatic memberRegisterChatAJAXProxy
Registers AJAX proxy which can be used to call ChatService.svc from javascript.
Public methodStatic memberRegisterChatManager
Registers ChatManager.js and support scripts.
Public methodStatic memberRegisterChatNotificationManager
Registers Chat sound manager used for playing sound notifications.
Public methodStatic memberRegisterChatSupportAJAXProxy
Registers AJAX proxy which can be used to call ChatSupportService.svc from javascript.
Public methodStatic memberRegisterChatSupportManager
Registers ChatSupportManager and support scripts.
Public methodStatic memberRegisterStylesheet(Page)
Registers CSS stylesheet. If page inherits CMSChatPage, CMSDesk stylesheet will be used instead of livesite stylesheet.
Public methodStatic memberRegisterStylesheet(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.
Top
See Also