Click or drag to resize
ChatRoomUserHelper Class
Helper class for managing chat users in rooms (ChatRoomUserInfo).
Inheritance Hierarchy

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

The ChatRoomUserHelper type exposes the following members.

Public methodStatic memberIncreaseChatAdminLevel
Increases admin level of specified user in specified room to specified level. This means that admin level is changed only if current level of this user is lower than new one.
Public methodStatic memberJoinUserToRoom
Adds (joins) user to this room. If user is already online, it does nothing. It sets user's LastChecking to Now.
Public methodStatic memberKickUserFromRoom
Kicks user from this room. His KickExpiration is set to DateTime.Now + number of seconds specified in settings.
Public methodStatic memberKickUserPermanentlyFromRoom
Kicks user permanently from this room. He is deleted from db and from memory. He can enter again only after receiving another invitation.
Public methodStatic memberLeaveRoom
Removes (leaves) chat user from this room.
Public methodStatic memberLeaveRoomPermanently
Removes user permanently from this room. This means, that he has to be invited again to enter it. In public rooms it does the same as classic LeaveRoom().
Public methodStatic memberSetChatAdminLevel
Sets admin level of specified user in specified room to specified level.
See Also