Click or drag to resize

SFSBuddyEventBUDDY_ONLINE_STATE_UPDATE Field

Dispatched when a buddy in the current user's buddies list changes his online state in the Buddy List system.

Namespace:  Sfs2X.Core
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public static readonly string BUDDY_ONLINE_STATE_UPDATE

Field Value

Type: String
Remarks
This event is fired in response to the GoOnlineRequest request to those who have the user as a buddy, but also to the user himself. As in this case the value of the buddy parameter is null (because the user is not buddy to himself of course), the isItMe parameter should be used to check if the current user is the one who changed his own online state.

The Params object contains the following parameters:

ParameterDescription
buddy(Buddy) The object representing the buddy who changed his own online state. If the isItMe parameter is true, the value of this parameter is null (because a user is not buddy to himself).
isItMe(bool) true if the online state was changed by the current user himself (in this case this event is a sort of state change confirmation).
Examples
See the GoOnlineRequest example.
See Also