1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-09-10 18:59:41 +02:00

Code cleanup.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1965 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2003-06-17 20:22:43 +00:00 committed by mtucker
parent 34acbe9cee
commit 302f9a4778
3 changed files with 26 additions and 21 deletions

View file

@ -181,6 +181,24 @@ public class RosterPacket extends IQ {
this.itemType = itemType;
}
/**
* Returns the roster item status.
*
* @return the roster item status.
*/
public ItemStatus getItemStatus() {
return itemStatus;
}
/**
* Sets the roster item status.
*
* @param itemStatus the roster item status.
*/
public void setItemStatus(ItemStatus itemStatus) {
this.itemStatus = itemStatus;
}
/**
* Returns an Iterator for the group names (as Strings) that the roster item
* belongs to.
@ -295,11 +313,6 @@ public class RosterPacket extends IQ {
*/
public static final ItemType NONE = new ItemType("none");
/**
* The subscription request is pending.
*/
public static final ItemType PENDING = new ItemType("pending");
/**
* The user is interested in receiving presence updates from the subscriber.
*/
@ -319,9 +332,6 @@ public class RosterPacket extends IQ {
if ("none".equals(value)) {
return NONE;
}
if ("pending".equals(value)) {
return PENDING;
}
else if ("to".equals(value)) {
return TO;
}