|
SmartFoxServer 3 C++ Client API 3.1.0-beta
Client API for SmartFoxServer 3
|
Sets one or more custom User Variables for the current user. More...
#include <SetUserVariablesRequest.h>
Public Member Functions | |
| SetUserVariablesRequest (std::vector< std::shared_ptr< entities::UserVariable > > varList) | |
| Creates a new SetUserVariablesRequest. | |
| SetUserVariablesRequest (const std::vector< entities::SFSUserVariable > &vars) | |
| Creates a new SetUserVariablesRequest from concrete variables. | |
Sets one or more custom User Variables for the current user.
When a User Variable is set, a event::SFSEvent::USER_VARIABLES_UPDATE event reaches every user in every Room the current user joined, himself included.
NOTE: the event reaches the users of a Room only if that Room allows it (see the permissions setting in RoomSettings).
|
inline |
Creates a new SetUserVariablesRequest.
Pass it to SmartFox::send for the request to be performed.
| varList | The User Variables to set. |
|
inline |
Creates a new SetUserVariablesRequest from concrete variables.
This overload saves you from wrapping each variable in a shared pointer. Each one is copied into the request, keeping its concrete type.
| vars | The User Variables to set. |