diff --git a/documentation/extensions/muc.html b/documentation/extensions/muc.html index 329617102..9f9db7bfb 100644 --- a/documentation/extensions/muc.html +++ b/documentation/extensions/muc.html @@ -16,6 +16,7 @@ Allows configuration of, participation in, and administration of individual text
-In order to get the rooms where a user is in just send -getJoinedRooms(XMPPConnection connection, String user) to the MultiUserChat +In order to get the rooms where a user is in just send +getJoinedRooms(XMPPConnection connection, String user) to the MultiUserChat class where user is a fully qualified XMPP ID, e.g. jdoe@example.com. You will get an Iterator of Strings as an answer where each String represents a room name.
@@ -262,6 +263,33 @@ In this example we can see how to get the rooms where a user is in:+ +Description
+ +A user may need to discover information about a room without having to actually join the room. The server +will provide information only for public rooms.
+ +Usage+ +In order to discover information about a room just send getRoomInfo(XMPPConnection connection, String room) +to the MultiUserChat class where room is the XMPP ID of the room, e.g. +roomName@conference.myserver. You will get a RoomInfo object that contains the discovered room +information.
+ +Examples
+
+In this example we can see how to discover information about a room:
+
++ +// Discover information about the room roomName@conference.myserver + RoomInfo info = MultiUserChat.getRoomInfo(conn, "roomName@conference.myserver"); + System.out.println("Number of occupants:" + info.getOccupantsCount()); + System.out.println("Room Subject:" + info.getSubject()); ++
Description