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

Dispatched when the current user receives a message from an administrator. More...

#include <SFSEvent.h>

Public Attributes

std::shared_ptr< entities::Usersender
 The administrator who sent the message.
std::string message
 The message.
std::shared_ptr< entities::SFSObjectdata
 The custom parameters the administrator attached to the message, or nullptr if none.

Detailed Description

Dispatched when the current user receives a message from an administrator.

It is caused by a requests::AdminMessageRequest, sent by a user with administration privileges.

sender is always a detached snapshot, for the same reason as in ModeratorMessage.

See also
requests::AdminMessageRequest
entities::User
SFSEvent::MODERATOR_MESSAGE

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