GoOnlineRequest

Toggles the online/offline state of the User as Buddy in other Users' Buddy Lists.


All clients having the User as Buddy in their Buddy List receive the SFSBuddyEvent.BUDDY_ONLINE_STATE_CHANGE event and see the SFSBuddy#isOnline property change accordingly. The same event is also dispatched to the User which sent the request, so that the application interface can be updated accordingly. Going online/offline as Buddy doesn't affect the User connection, the currently joined Zone and Rooms, etc.

The online state of a User in the Buddy List is handled by means of a reserved and persistent Buddy Variable (see ReservedBuddyVariables.BV_ONLINE).

This request can be sent if the Buddy List System is already initialized (see the InitBuddyListRequest class description).

Constructor

new GoOnlineRequest(online)

Creates a new instance of the GoOnlineRequest class.
Pass the instance to the SmartFox#send method to validate and execute the request.
Parameters:
NameTypeDescription
onlinebooleanIf true, the User becomes available (online) in the Buddy List System.