|
SmartFoxServer 3 C++ Client API 3.1.0-beta
Client API for SmartFoxServer 3
|
Dispatched when a buddy in the current user's buddies list changes his online state. More...
#include <SFSEvent.h>
Public Attributes | |
| std::shared_ptr< entities::Buddy > | buddy |
| The buddy who changed his state. | |
| bool | isItMe |
| True if the current user is the one who changed his state. | |
Dispatched when a buddy in the current user's buddies list changes his online state.
Sent in response to a requests::buddy::GoOnlineRequest.
The event reaches everyone who has the sender as a buddy, and the sender himself.
Nothing is dispatched while the current user is offline in the Buddy List system: the state changes of his buddies are applied silently until he goes back online.
| std::shared_ptr<entities::Buddy> sfs3::event::BuddyOnlineStateChange::buddy |
The buddy who changed his state.
It is nullptr when isItMe is true, because the current user is not a buddy of his own list: read core::buddy::BuddyManager::getMyOnlineState instead.