11 #ifndef __JoinRoomRequest__ 12 #define __JoinRoomRequest__ 14 #include "../Util/Common.h" 15 #include "BaseRequest.h" 17 #include <boost/shared_ptr.hpp> 20 #pragma warning(disable:4786) // STL library: disable warning 4786; this warning is generated due to a Microsoft bug 92 JoinRoomRequest(boost::shared_ptr<Room>
id,
string pass, boost::shared_ptr<long int> roomIdToLeave,
bool asSpectator);
93 JoinRoomRequest(
string id,
string pass, boost::shared_ptr<long int> roomIdToLeave,
bool asSpectator);
94 JoinRoomRequest(
long int id,
string pass, boost::shared_ptr<long int> roomIdToLeave,
bool asSpectator);
99 JoinRoomRequest(boost::shared_ptr<Room>
id,
string pass, boost::shared_ptr<long int> roomIdToLeave);
100 JoinRoomRequest(
string id,
string pass, boost::shared_ptr<long int> roomIdToLeave);
101 JoinRoomRequest(
long int id,
string pass, boost::shared_ptr<long int> roomIdToLeave);
119 void Validate(boost::shared_ptr<SmartFox> sfs);
121 void Execute (boost::shared_ptr<SmartFox> sfs);
126 static boost::shared_ptr<string> KEY_ROOM;
128 static boost::shared_ptr<string> KEY_USER_LIST;
130 static boost::shared_ptr<string> KEY_ROOM_NAME;
132 static boost::shared_ptr<string> KEY_ROOM_ID;
134 static boost::shared_ptr<string> KEY_PASS;
136 static boost::shared_ptr<string> KEY_ROOM_TO_LEAVE;
138 static boost::shared_ptr<string> KEY_AS_SPECTATOR;
155 void Init(boost::shared_ptr<Room>
id, boost::shared_ptr<string> pass, boost::shared_ptr<long int> roomIdToLeave,
bool asSpectator);
156 void Init(
string id, boost::shared_ptr<string> pass, boost::shared_ptr<long int> roomIdToLeave,
bool asSpectator);
157 void Init(
long int id, boost::shared_ptr<string> pass, boost::shared_ptr<long int> roomIdToLeave,
bool asSpectator);
163 boost::shared_ptr<string> name;
164 boost::shared_ptr<string> pass;
165 boost::shared_ptr<long int> roomIdToLeave;
Join the current User in a Room.
Definition: JoinRoomRequest.h:32
Definition: SmartFox.cpp:24