|  | SmartFoxServer 2X C++ API
    | 
Join the current User in a Room. More...
#include <JoinRoomRequest.h>
Inherits Sfs2X::Requests::BaseRequest.
| Public Member Functions | |
| JoinRoomRequest (boost::shared_ptr< Room > id, string pass, boost::shared_ptr< long int > roomIdToLeave, bool asSpectator) | |
| Constructor  More... | |
| JoinRoomRequest (boost::shared_ptr< Room > id, string pass, boost::shared_ptr< long int > roomIdToLeave) | |
| JoinRoomRequest(boost::shared_ptr<Room>, string, long int, bool)  More... | |
| JoinRoomRequest (boost::shared_ptr< Room > id, string pass) | |
| JoinRoomRequest(boost::shared_ptr<Room>, string, long int, bool)  More... | |
| JoinRoomRequest (boost::shared_ptr< Room > id) | |
| JoinRoomRequest(boost::shared_ptr<Room>, string, long int, bool)  More... | |
Join the current User in a Room.
| Sfs2X::Requests::JoinRoomRequest::JoinRoomRequest | ( | boost::shared_ptr< Room > | id, | 
| string | pass, | ||
| boost::shared_ptr< long int > | roomIdToLeave, | ||
| bool | asSpectator | ||
| ) | 
Constructor
| id | you can use the numeric ID of the Room or its name | 
| pass | needed only if the Room is password protected | 
| roomIdToLeave | the id of a previously joined Room that you want to leave once joined in the new Room (optional). The default behavior is to leave the previous Room. You can pass a negative ID to avoid leaving any Room | 
| asSpectator | if true it indicates that you want to join the room as spectator (optional, for game Rooms only) | 
| Sfs2X::Requests::JoinRoomRequest::JoinRoomRequest | ( | boost::shared_ptr< Room > | id, | 
| string | pass, | ||
| boost::shared_ptr< long int > | roomIdToLeave | ||
| ) | 
JoinRoomRequest(boost::shared_ptr<Room>, string, long int, bool)
| Sfs2X::Requests::JoinRoomRequest::JoinRoomRequest | ( | boost::shared_ptr< Room > | id, | 
| string | pass | ||
| ) | 
JoinRoomRequest(boost::shared_ptr<Room>, string, long int, bool)
| Sfs2X::Requests::JoinRoomRequest::JoinRoomRequest | ( | boost::shared_ptr< Room > | id | ) | 
JoinRoomRequest(boost::shared_ptr<Room>, string, long int, bool)