Hey,
You can create a local reference to IRoom inside the Room Adapter class. You can then set reference to it through constructor while creating the object of that room adapter in zone adapter.
public class GameRoom extends BaseRoomAdaptor{
private IRoom m_room;
public GameRoom (IRoom room) {
m_room = room;
}
}
public class GameZone extends BaseZoneAdaptor {
@Override
public void onAdminRoomAdded(IRoom room)
{
GameRoom mRoom = new GameRoom(room);
room.setAdaptor(mRoom);
}
}
Now you can use the getJoinedUsers() method of IRoom to get the list of all players
Thanks