1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-23 02:58:00 +01:00

Added JID of the room whose information was discovered. SMACK-57

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2493 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2005-05-27 18:12:52 +00:00 committed by gaston
parent 7aac6e971a
commit bdd395b0dc

View file

@ -32,6 +32,10 @@ import org.jivesoftware.smackx.Form;
*/
public class RoomInfo {
/**
* JID of the room. The node of the JID is commonly used as the ID of the room or name.
*/
private String room;
/**
* Description of the room.
*/
@ -72,6 +76,7 @@ public class RoomInfo {
RoomInfo(DiscoverInfo info) {
super();
this.room = info.getFrom();
// Get the information based on the discovered features
this.membersOnly = info.containsFeature("muc_membersonly");
this.moderated = info.containsFeature("muc_moderated");
@ -90,6 +95,15 @@ public class RoomInfo {
}
}
/**
* Returns the JID of the room whose information was discovered.
*
* @return the JID of the room whose information was discovered.
*/
public String getRoom() {
return room;
}
/**
* Returns the discovered description of the room.
*