Package | com.smartfoxserver.v2.entities.managers |
Interface | public interface IUserManager |
Implementors | SFSUserManager |
In the SmartFoxServer 2X client API this interface is implemented by the SFSUserManager class. Read the class description for additional informations.
See also
Property | Defined By | ||
---|---|---|---|
userCount : int [read-only]
Returns the total number of users in the local users list. | IUserManager |
Method | Defined By | ||
---|---|---|---|
containsUser(user:User):Boolean
Indicates whether a user exists in the local users list or not. | IUserManager | ||
containsUserId(userId:int):Boolean
Indicates whether a user exists in the local users list or not from the id. | IUserManager | ||
containsUserName(userName:String):Boolean
Indicates whether a user exists in the local users list or not from the name. | IUserManager | ||
getUserById(userId:int):User
Retrieves a User object from its id property. | IUserManager | ||
getUserByName(userName:String):User
Retrieves a User object from its name property. | IUserManager | ||
getUserList():Array
Get the whole list of users inside the Rooms joined by the client. | IUserManager |
userCount | property |
userCount:int
[read-only] Returns the total number of users in the local users list.
public function get userCount():int
containsUser | () | method |
public function containsUser(user:User):Boolean
Indicates whether a user exists in the local users list or not.
Parameters
user:User — The User object representing the user whose presence in the users list is to be tested.
|
Boolean — true if the passed user exists in the users list.
|
containsUserId | () | method |
public function containsUserId(userId:int):Boolean
Indicates whether a user exists in the local users list or not from the id.
Parameters
userId:int — The id of the user whose presence in the users list is to be tested.
|
Boolean — true if the passed user exists in the users list.
|
See also
containsUserName | () | method |
public function containsUserName(userName:String):Boolean
Indicates whether a user exists in the local users list or not from the name.
Parameters
userName:String — The name of the user whose presence in the users list is to be tested.
|
Boolean — true if the passed user exists in the users list.
|
See also
getUserById | () | method |
public function getUserById(userId:int):User
Retrieves a User object from its id property.
Parameters
userId:int — The id of the user to be found.
|
User — The User object representing the user, or null if no user with the passed id exists in the local users list.
|
See also
getUserByName | () | method |
public function getUserByName(userName:String):User
Retrieves a User object from its name property.
Parameters
userName:String — The name of the user to be found.
|
User — The User object representing the user, or null if no user with the passed name exists in the local users list.
|
See also
getUserList | () | method |
public function getUserList():Array
Get the whole list of users inside the Rooms joined by the client.
ReturnsArray — The list of User objects representing the users in the local users list.
|