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

Dispatched when a buddy updates one or more of his Buddy Variables. More...

#include <SFSEvent.h>

Public Attributes

std::shared_ptr< entities::Buddybuddy
 The buddy who updated his variables.
bool isItMe
 True if the current user is the one who updated his variables.
std::vector< std::string > changedVars
 The names of the Buddy Variables that were updated, or created for the first time.

Detailed Description

Dispatched when a buddy updates one or more of his Buddy Variables.

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

As with BuddyOnlineStateChange, nothing is dispatched while the current user is offline in the Buddy List system.

See also
requests::buddy::SetBuddyVariablesRequest
entities::BuddyVariable
entities::Buddy

Member Data Documentation

◆ buddy

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

The buddy who updated his variables.

It is nullptr when isItMe is true: read core::buddy::BuddyManager::getMyVariables instead.

◆ changedVars

std::vector<std::string> sfs3::event::BuddyVariablesUpdate::changedVars

The names of the Buddy Variables that were updated, or created for the first time.

Read their values from the buddy, which is already updated when this event is dispatched.


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