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

Dispatched when the current user receives a message from a moderator. More...

#include <SFSEvent.h>

Public Attributes

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

Detailed Description

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.

See also
requests::ModeratorMessageRequest
requests::KickUserRequest
requests::BanUserRequest
entities::User
SFSEvent::ADMIN_MESSAGE

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