Click or drag to resize

SFSUserManager Class

The SFSUserManager class is the entity in charge of managing the local (client-side) users list.
Inheritance Hierarchy
SystemObject
  Sfs2X.Entities.ManagersSFSUserManager

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

The SFSUserManager type exposes the following members.

Properties
  NameDescription
Public propertyUserCount
Returns the total number of users in the local users list.
Top
Methods
  NameDescription
Public methodContainsUser
Indicates whether a user exists in the local users list or not.
Public methodContainsUserId
Indicates whether a user exists in the local users list or not from the id.
Public methodContainsUserName
Indicates whether a user exists in the local users list or not from the name.
Public methodGetUserById
Retrieves a User object from its id property.
Public methodGetUserByName
Retrieves a User object from its name property.
Public methodGetUserList
Get the whole list of users inside the Rooms joined by the client.
Top
Remarks
This manager keeps track of all the users that are currently joined in the same Rooms of the current user. It also provides utility methods to look for users by name and id.
See Also