SmartFoxServer Silverlight API
SFSEvent..::.OnBuddyListUpdateDelegate Delegate
Namespaces ► SmartFoxClientAPI ► SFSEvent ► SFSEvent..::.OnBuddyListUpdateDelegate
Dispatched when the status or variables of a buddy in the buddy list change.
Declaration Syntax

C# | Visual Basic | Visual C++

    public delegate void OnBuddyListUpdateDelegate(
    	Buddy buddy
    )

    Public Delegate Sub OnBuddyListUpdateDelegate ( _
    	buddy As Buddy _
    )

    public delegate void OnBuddyListUpdateDelegate(
    	Buddy^ buddy
    )

Parameters

buddy (Buddy)
  an object representing the buddy whose status or Buddy Variables have changed. Refer to the buddyList property for a description of the buddy object's properties.

Remarks

Version:
SmartFoxServer Basic / Pro

Examples
The following example shows how to handle the online status change of a buddy.
CopyC#

    SFSEvent.onBuddyListUpdate += OnBuddyListUpdate;

    public void OnBuddyListUpdate(Buddy buddy)
    {
        string name = buddy.GetName();
        string status = (buddy.IsOnline()) ? "online" : "offline";

        Debug.WriteLine("Buddy " + name + " is currently " + status);
    }

See Also
SFSEvent..::.OnBuddyListDelegate
buddyList
SetBuddyBlockStatus(String, Boolean)
SetBuddyVariables(Dictionary<(Of <(String, Object>)>))

Assembly: SmartFoxClientAPI_Silverlight (Module: SmartFoxClientAPI_Silverlight) Version: 1.0.0.0 (1.0.0.0)