|
SmartFoxServer 3 C++ Client API 3.1.0-beta
Client API for SmartFoxServer 3
|
Dispatched when the current user receives an invitation from another user. More...
#include <SFSEvent.h>
Public Attributes | |
| std::shared_ptr< entities::Invitation > | invitation |
| The invitation received by the current user. | |
Dispatched when the current user receives an invitation from another user.
It is caused by a requests::inv::InviteUsersRequest or a requests::inv::JoinRoomInvitationRequest.
The user is supposed to reply with a requests::inv::InvitationReplyRequest inside entities::Invitation::getSecondsForAnswer seconds, after which the server treats the invitation as refused. Nothing on the client enforces that deadline: an expired invitation can still be replied to, and the reply comes back as a SFSEvent::INVITATION_REPLY_ERROR.