|
SmartFoxServer 3 C++ Client API 3.1.0-beta
Client API for SmartFoxServer 3
|
Blocks or unblocks a buddy in the current user's buddies list. More...
#include <BlockBuddyRequest.h>
Public Member Functions | |
| BlockBuddyRequest (std::string buddyName, bool blocked) | |
| Creates a new BlockBuddyRequest. | |
Blocks or unblocks a buddy in the current user's buddies list.
Blocked buddies won't be able to see if the user who blocked them is online in their buddies list; they also won't be able to send messages or requests to that user.
In order to block a buddy, the current user must be online in the Buddy List system. If the operation is successful, a event::SFSEvent::BUDDY_BLOCK confirmation event is dispatched; otherwise the event::SFSEvent::BUDDY_ERROR event is fired.
NOTE: this request can be sent if the Buddy List system was previously initialized only (see the InitBuddyListRequest request description).
|
inline |
Creates a new BlockBuddyRequest.
Pass it to SmartFox::send for the request to be performed.
| buddyName | The name of the buddy to be blocked or unblocked. |
| blocked | true if the buddy must be blocked; false if he must be unblocked. |