SmartFoxServer 2X C++ API
|
Invitation object More...
#include <SFSInvitation.h>
Public Member Functions | |
SFSInvitation (boost::shared_ptr< User > inviter, boost::shared_ptr< User > invitee) | |
Constructor More... | |
SFSInvitation (boost::shared_ptr< User > inviter, boost::shared_ptr< User > invitee, long int secondsForAnswer) | |
Constructor More... | |
SFSInvitation (boost::shared_ptr< User > inviter, boost::shared_ptr< User > invitee, long int secondsForAnswer, boost::shared_ptr< ISFSObject > parameters) | |
Constructor More... | |
long int | Id () |
The id of the invitation More... | |
void | Id (long int value) |
The id of the invitation More... | |
boost::shared_ptr< User > | Inviter () |
The inviter User More... | |
boost::shared_ptr< User > | Invitee () |
The invited User More... | |
long int | SecondsForAnswer () |
The amount of time (seconds) allowed to reply to the invitation More... | |
boost::shared_ptr< ISFSObject > | Params () |
A custom set of parameters. More... | |
Invitation object
An Invitation object provides the ability to send a generic invitation for a specific event going on in your application, be it a game, visiting a personal Room or another location of the virtual world etc...
The SFS2X Invitation Manager is very simple to use. All you need to provide is:
Sfs2X::Entities::Invitation::SFSInvitation::SFSInvitation | ( | boost::shared_ptr< User > | inviter, |
boost::shared_ptr< User > | invitee | ||
) |
Constructor
inviter | the User that sends the Invitation |
invitee | the User that receives the Invitation |
Sfs2X::Entities::Invitation::SFSInvitation::SFSInvitation | ( | boost::shared_ptr< User > | inviter, |
boost::shared_ptr< User > | invitee, | ||
long int | secondsForAnswer | ||
) |
Constructor
inviter | the User that sends the Invitation |
invitee | the User that receives the Invitation |
secondsForAnswer | the number of seconds allowed for the Invitee to reply (recommended range: 15-40 seconds) |
Sfs2X::Entities::Invitation::SFSInvitation::SFSInvitation | ( | boost::shared_ptr< User > | inviter, |
boost::shared_ptr< User > | invitee, | ||
long int | secondsForAnswer, | ||
boost::shared_ptr< ISFSObject > | parameters | ||
) |
Constructor
inviter | the User that sends the Invitation |
invitee | the User that receives the Invitation |
secondsForAnswer | the number of seconds allowed for the Invitee to reply (recommended range: 15-40 seconds) |
parameters | custom params to send with the invitation |
|
virtual |
The id of the invitation
Implements Sfs2X::Entities::Invitation::Invitation.
|
virtual |
The id of the invitation
Implements Sfs2X::Entities::Invitation::Invitation.
|
virtual |
The invited User
Implements Sfs2X::Entities::Invitation::Invitation.
|
virtual |
The inviter User
Implements Sfs2X::Entities::Invitation::Invitation.
|
virtual |
A custom set of parameters.
Can be used to provide a message for the invitation and any other relevant data
Implements Sfs2X::Entities::Invitation::Invitation.
|
virtual |
The amount of time (seconds) allowed to reply to the invitation
Implements Sfs2X::Entities::Invitation::Invitation.