|
SmartFoxServer 3 C++ Client API 3.1.0-beta
Client API for SmartFoxServer 3
|
Adds a new buddy to the current user's buddies list. More...
#include <AddBuddyRequest.h>
Public Member Functions | |
| AddBuddyRequest (std::string buddyName) | |
| Creates a new AddBuddyRequest. | |
Adds a new buddy to the current user's buddies list.
In order to add a buddy, the current user must be online in the Buddy List system. If the buddy is added successfully, the operation is confirmed by a event::SFSEvent::BUDDY_ADD event; 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 AddBuddyRequest.
Pass it to SmartFox::send for the request to be performed.
| buddyName | The name of the user to be added as a buddy. |