Click or drag to resize

SFSRoomManager Class

The SFSRoomManager class is the entity in charge of managing the client-side Rooms list.
Inheritance Hierarchy
SystemObject
  Sfs2X.Entities.ManagersSFSRoomManager

Namespace:  Sfs2X.Entities.Managers
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public class SFSRoomManager : IRoomManager

The SFSRoomManager type exposes the following members.

Methods
  NameDescription
Public methodContainsGroup
Indicates whether the specified Group has been subscribed by the client or not.
Public methodContainsRoom
Indicates whether a Room exists in the Rooms list or not.
Public methodContainsRoomInGroup
Indicates whether the Rooms list contains a Room belonging to the specified Group or not.
Public methodGetJoinedRooms
Returns a list of Rooms currently joined by the client.
Public methodGetRoomById
Retrieves a Room object from its id.
Public methodGetRoomByName
Retrieves a Room object from its name.
Public methodGetRoomCount
Returns the current number of Rooms in the Rooms list.
Public methodGetRoomList
Returns a list of Rooms currently "known" by the client.
Public methodGetRoomListFromGroup
Retrieves the list of Rooms which are part of the specified Room Group.
Public methodGetUserRooms
Retrieves a list of Rooms joined by the specified user.
Top
Remarks
This manager keeps track of all the Rooms available in the client-side Rooms list and of subscriptions to multiple Room Groups. It also provides various utility methods to look for Rooms by name and id, retrieve Rooms belonging to a specific Group, etc.
See Also