11 #ifndef __BanUserRequest__ 12 #define __BanUserRequest__ 14 #include "../Util/Common.h" 15 #include "BaseRequest.h" 18 #include <boost/shared_ptr.hpp> 21 #pragma warning(disable:4786) // STL library: disable warning 4786; this warning is generated due to a Microsoft bug 61 BanUserRequest(
long int userId,
string message, BanMode banMode,
long int delaySeconds);
90 BanUserRequest(
long int userId,
string message, BanMode banMode,
long int delaySeconds,
long int durationHours);
94 void Validate(boost::shared_ptr<SmartFox> sfs);
96 void Execute (boost::shared_ptr<SmartFox> sfs);
102 static boost::shared_ptr<string> KEY_USER_ID;
104 static boost::shared_ptr<string> KEY_MESSAGE;
106 static boost::shared_ptr<string> KEY_DELAY;
108 static boost::shared_ptr<string> KEY_BAN_MODE;
110 static boost::shared_ptr<string> KEY_BAN_DURATION_HOURS;
127 void Init(
long int userId,
string message, BanMode banMode,
long int delaySeconds,
long int durationHours);
133 boost::shared_ptr<string> message;
136 long int durationHours;
Banish a User from the system (for moderators and admins only)
Definition: BanUserRequest.h:35
Definition: SmartFox.cpp:24