SmartFoxServer 2X C++ API
|
Manages the local Users. More...
#include <SFSUserManager.h>
Public Member Functions | |
bool | ContainsUserName (string userName) |
Checks if a specific User name exists in the local User list More... | |
bool | ContainsUserId (long int userId) |
Checks if a specific User id exists in the local User list More... | |
bool | ContainsUser (boost::shared_ptr< User > user) |
Checks if a specific User object exists in the local User list More... | |
boost::shared_ptr< User > | GetUserByName (string userName) |
Get a User object from its name More... | |
boost::shared_ptr< User > | GetUserById (long int userId) |
Get a User object from its id More... | |
long int | UserCount () |
Get the total number of Users More... | |
boost::shared_ptr< vector< boost::shared_ptr< User > > > | GetUserList () |
Get the full list of Users More... | |
Manages the local Users.
The client side API only see the Users that are joined in the same Rooms of the current User.
|
virtual |
Checks if a specific User object exists in the local User list
user | Pointer to an User instance |
Implements Sfs2X::Entities::Managers::IUserManager.
|
virtual |
Checks if a specific User id exists in the local User list
userId | A long integer |
Implements Sfs2X::Entities::Managers::IUserManager.
|
virtual |
Checks if a specific User name exists in the local User list
userName | A string pointer |
Implements Sfs2X::Entities::Managers::IUserManager.
|
virtual |
Get a User object from its id
userId | A long integer |
Implements Sfs2X::Entities::Managers::IUserManager.
|
virtual |
Get a User object from its name
userName | A string pointer |
Implements Sfs2X::Entities::Managers::IUserManager.
|
virtual |
Get the full list of Users
Implements Sfs2X::Entities::Managers::IUserManager.
|
virtual |
Get the total number of Users
Implements Sfs2X::Entities::Managers::IUserManager.