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

Dispatched when a buddy is blocked or unblocked by the current user. More...

#include <SFSEvent.h>

Public Attributes

std::shared_ptr< entities::Buddybuddy
 The buddy that was blocked or unblocked.

Detailed Description

Dispatched when a buddy is blocked or unblocked by the current user.

Sent in response to a requests::buddy::BlockBuddyRequest.

See also
requests::buddy::BlockBuddyRequest
entities::Buddy
SFSEvent::BUDDY_ERROR

Member Data Documentation

◆ buddy

std::shared_ptr<entities::Buddy> sfs3::event::BuddyBlock::buddy

The buddy that was blocked or unblocked.

On an unblock the server ships the buddy's full data back (his Buddy Variables were hidden while he was blocked), so this is a new instance that replaced the previous one in the manager. On a block it is the existing instance, with its blocked flag changed.


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