Click or drag to resize
RoomState Class
Class holding caches of messages and online users in one room.
Inheritance Hierarchy
SystemObject
  CMS.ChatRoomState

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 9.0.0
Syntax
C#
public class RoomState

The RoomState type exposes the following members.

Constructors
  NameDescription
Public methodRoomState
Constructor. parentName is used to create cache keys.
Top
Properties
  NameDescription
Public propertyOnlineUsers
List of online users in this room. Contains not only online users, but also users with Admin rights, Join rights (private rooms), etc.
Public propertyRoomInfo
Gets ChatRoomInfo of this room. Properties of this room can't be change via this instance (use ReloadChatRoomInfo() instead).
Top
Methods
  NameDescription
Public methodForceIsUserOnline
Checks if user is online. Caller of this method expects that user is online. If user is not online in cache, this method checks database.
Public methodForceTryGetUser
Gets online user. Caller expects that user is present in list of online users.
Public methodGetMessages
Gets newest messages.
Public methodGetOnlineUsers
Gets online users in this room. Changed or all (sinceWhen is null).
Public methodInvalidateKickedUsers
Invalidate list of kicked users in this room.
Public methodIsUserKicked(Int32)
Checks if the chat users specified by chatUserID is kicked from this room.
Public methodIsUserKicked(Int32, Int32)
Checks if the chat users specified by chatUserID is kicked from this room.
Public methodReloadChatRoomInfo
Reloads info about this chat room. Should be called every time after room is changed.
Public methodTryGetUser
Gets online user.
Top
See Also