SmartFoxServer Silverlight API
SFSEvent..::.OnBuddyRoomDelegate Delegate
Namespaces ► SmartFoxClientAPI ► SFSEvent ► SFSEvent..::.OnBuddyRoomDelegate
Dispatched in response to a GetBuddyRoom(Buddy) request.
Declaration Syntax

C# | Visual Basic | Visual C++

    public delegate void OnBuddyRoomDelegate(
    	List<int> idList
    )

    Public Delegate Sub OnBuddyRoomDelegate ( _
    	idList As List(Of Integer) _
    )

    public delegate void OnBuddyRoomDelegate(
    	List<int>^ idList
    )

Parameters

idList (List<(Of <(Int32>)>))
  the list of id of the rooms in which the buddy is currently logged; if users can't be present in more than one room at the same time, the list will contain one room id only, at 0 index.

Remarks

Version:
SmartFoxServer Basic / Pro

Examples
The following example shows how to join the same room in which the buddy currently is.
CopyC#

    SFSEvent.onBuddyRoom += OnBuddyRoom;

    Buddy buddy = smartFox.GetBuddyByName("jack");
    smartFox.GetBuddyRoom(buddy);

    public void OnBuddyRoom(List<int> idList)
    {
        // Reach the buddy in his room
        smartFox.Join(idList[0]);
    }

See Also
GetBuddyRoom(Buddy)

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