SmartFoxServer 2X C++ API
Invitation.h
1 // ===================================================================
2 //
3 // Description
4 // Contains the definition of Invitation
5 //
6 // Revision history
7 // Date Description
8 // 30-Nov-2012 First version
9 //
10 // ===================================================================
11 #ifndef __Invitation__
12 #define __Invitation__
13 
14 #include "../User.h"
15 #include "../Data/ISFSObject.h"
16 
17 #include <boost/shared_ptr.hpp> // Boost Asio shared pointer
18 
19 using namespace Sfs2X::Entities;
20 using namespace Sfs2X::Entities::Data;
21 
22 namespace Sfs2X {
23 namespace Entities {
24 namespace Invitation {
25 
33  class DLLImportExport Invitation
34  {
35  public:
36 
40  virtual long int Id() = 0;
41 
45  virtual void Id(long int value) = 0;
46 
50  virtual boost::shared_ptr<User> Inviter() = 0;
51 
55  virtual boost::shared_ptr<User> Invitee() = 0;
56 
60  virtual long int SecondsForAnswer() = 0;
61 
68  virtual boost::shared_ptr<ISFSObject> Params() = 0;
69  };
70 
71 } // namespace Invitation
72 } // namespace Entities
73 } // namespace Sfs2X
74 
75 #endif
Represents an Invitation object
Definition: Invitation.h:33
Definition: Buddy.h:30
Definition: SmartFox.cpp:24
Definition: ISFSArray.h:17