SmartFoxServer 2X C++ API
PrivateMessageRequest.h
1 // ===================================================================
2 //
3 // Description
4 // Contains the definition of PrivateMessageRequest
5 //
6 // Revision history
7 // Date Description
8 // 30-Nov-2012 First version
9 //
10 // ===================================================================
11 #ifndef __PrivateMessageRequest__
12 #define __PrivateMessageRequest__
13 
14 #include "../Util/Common.h"
15 #include "GenericMessageRequest.h"
16 #include "../Entities/Data/ISFSObject.h"
17 
18 #include <boost/shared_ptr.hpp> // Boost Asio shared pointer
19 
20 #if defined(_MSC_VER)
21 #pragma warning(disable:4786) // STL library: disable warning 4786; this warning is generated due to a Microsoft bug
22 #endif
23 #include <string> // STL library: string object
24 using namespace std; // STL library: declare the STL namespace
25 
26 using namespace Sfs2X::Entities::Data;
27 
28 namespace Sfs2X {
29 namespace Requests {
30 
38  class DLLImportExport PrivateMessageRequest : public GenericMessageRequest
39  {
40  public:
41 
42  // -------------------------------------------------------------------
43  // Public methods
44  // -------------------------------------------------------------------
45 
85  PrivateMessageRequest(string message, long int recipientId, boost::shared_ptr<ISFSObject> parameters);
86 
90  PrivateMessageRequest(string message, long int recipientId);
91 
92  virtual ~PrivateMessageRequest();
93 
94  // -------------------------------------------------------------------
95  // Public members
96  // -------------------------------------------------------------------
97 
98  protected:
99 
100  // -------------------------------------------------------------------
101  // Protected methods
102  // -------------------------------------------------------------------
103 
104  // -------------------------------------------------------------------
105  // Protected members
106  // -------------------------------------------------------------------
107 
108  private:
109 
110  // -------------------------------------------------------------------
111  // Private methods
112  // -------------------------------------------------------------------
113 
114  // -------------------------------------------------------------------
115  // Private members
116  // -------------------------------------------------------------------
117  };
118 
119 } // namespace Requests
120 } // namespace Sfs2X
121 
122 #endif
STL namespace.
Send a chat Private Message to another User
Definition: PrivateMessageRequest.h:38
Definition: SmartFox.cpp:24
Definition: ISFSArray.h:17