|
SmartFoxServer 3 C++ Client API 3.1.0-beta
Client API for SmartFoxServer 3
|
Dispatched when the current user receives a message from a moderator. More...
#include <SFSEvent.h>
Public Attributes | |
| std::shared_ptr< entities::User > | sender |
| The moderator who sent the message. | |
| std::string | message |
| The message. | |
| std::shared_ptr< entities::SFSObject > | data |
| The custom parameters the moderator attached to the message, or nullptr if none. | |
Dispatched when the current user receives a message from a moderator.
It can be caused by a requests::ModeratorMessageRequest, a requests::KickUserRequest or a requests::BanUserRequest. A kick or ban action performed with the SmartFoxServer 3 Administration Tool causes it too.
sender is always a detached snapshot: a moderator who addresses a Group or the whole Zone is usually someone this client shares no Room with, so the server ships his User data along.