SmartFoxServer 3 C++ Client API 3.1.0-beta
Client API for SmartFoxServer 3
Loading...
Searching...
No Matches
sfs3::event::Invitation Struct Reference

Dispatched when the current user receives an invitation from another user. More...

#include <SFSEvent.h>

Public Attributes

std::shared_ptr< entities::Invitationinvitation
 The invitation received by the current user.

Detailed Description

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.

See also
requests::inv::InviteUsersRequest
requests::inv::InvitationReplyRequest
entities::Invitation
SFSEvent::INVITATION_REPLY

The documentation for this struct was generated from the following file: