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

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::Buddybuddy
 The buddy who changed his state.
bool isItMe
 True if the current user is the one who changed his state.

Detailed Description

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.

See also
requests::buddy::GoOnlineRequest
entities::Buddy

Member Data Documentation

◆ buddy

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.


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