SmartFoxServer Unity/.NET API
SFSEvent..::.OnBuddyRoomDelegate Delegate
NamespacesSmartFoxClientAPISFSEventSFSEvent..::.OnBuddyRoomDelegate
Dispatched in response to a GetBuddyRoom(Buddy) request.
Declaration Syntax
C#Visual BasicVisual C++
public delegate void OnBuddyRoomDelegate(
	ArrayList idList
)
Public Delegate Sub OnBuddyRoomDelegate ( _
	idList As ArrayList _
)
public delegate void OnBuddyRoomDelegate(
	ArrayList^ idList
)
Parameters
idList (ArrayList)
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(ArrayList idList)
{
    // Reach the buddy in his room
    smartFox.Join(idList[0]);
}
See Also

Assembly: SmartFoxClient (Module: SmartFoxClient) Version: 1.2.4.0 (1.2.4.0)