Dispatched in response to a GetBuddyRoom(Buddy) request.
- 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.
Version:
SmartFoxServer Basic / Pro
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]); }