SmartFoxServer 2X C++ API
AdminMessageRequest.h
1 // ===================================================================
2 //
3 // Description
4 // Contains the definition of AdminMessageRequest
5 //
6 // Revision history
7 // Date Description
8 // 30-Nov-2012 First version
9 //
10 // ===================================================================
11 #ifndef __AdminMessageRequest__
12 #define __AdminMessageRequest__
13 
14 #include "../Util/Common.h"
15 #include <boost/exception/exception.hpp>
16 #include <boost/exception/all.hpp>
17 #include <boost/shared_ptr.hpp> // Boost Asio shared pointer
18 #include "GenericMessageRequest.h"
19 #include "MessageRecipientMode.h"
20 #include "GenericMessageType.h"
21 #include "../Entities/Data/ISFSObject.h"
22 
23 #if defined(_MSC_VER)
24 #pragma warning(disable:4786) // STL library: disable warning 4786; this warning is generated due to a Microsoft bug
25 #endif
26 #include <string> // STL library: string object
27 using namespace std; // STL library: declare the STL namespace
28 
29 using namespace Sfs2X;
30 using namespace Sfs2X::Entities::Data;
31 
32 namespace Sfs2X {
33 namespace Requests {
34 
45  class DLLImportExport AdminMessageRequest : public GenericMessageRequest
46  {
47  public:
48 
49  // -------------------------------------------------------------------
50  // Public methods
51  // -------------------------------------------------------------------
52 
91  AdminMessageRequest(string message, boost::shared_ptr<MessageRecipientMode> recipientMode, boost::shared_ptr<ISFSObject> parameters);
92 
96  AdminMessageRequest(string message, boost::shared_ptr<MessageRecipientMode> recipientMode);
97  virtual ~AdminMessageRequest();
98 
99  // -------------------------------------------------------------------
100  // Public members
101  // -------------------------------------------------------------------
102 
103  protected:
104 
105  // -------------------------------------------------------------------
106  // Protected methods
107  // -------------------------------------------------------------------
108 
109  // -------------------------------------------------------------------
110  // Protected members
111  // -------------------------------------------------------------------
112 
113  private:
114 
115  // -------------------------------------------------------------------
116  // Private methods
117  // -------------------------------------------------------------------
118 
119  // -------------------------------------------------------------------
120  // Private members
121  // -------------------------------------------------------------------
122  };
123 
124 } // namespace Requests
125 } // namespace Sfs2X
126 
127 #endif
Send a Admin Message to a specific User or groups of Users
Definition: AdminMessageRequest.h:45
STL namespace.
Definition: SmartFox.cpp:24
Definition: ISFSArray.h:17