Support for pending roster items.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1902 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2003-04-25 20:20:55 +00:00 committed by mtucker
parent fe6b9f2693
commit 7b02479f66
1 changed files with 4 additions and 0 deletions

View File

@ -269,6 +269,7 @@ public class RosterPacket extends IQ {
public static class ItemType {
public static final ItemType NONE = new ItemType("none");
public static final ItemType PENDING = new ItemType("pending");
public static final ItemType TO = new ItemType("to");
public static final ItemType FROM = new ItemType("from");
public static final ItemType BOTH = new ItemType("both");
@ -277,6 +278,9 @@ public class RosterPacket extends IQ {
if ("none".equals(value)) {
return NONE;
}
if ("pending".equals(value)) {
return PENDING;
}
else if ("to".equals(value)) {
return TO;
}