1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-16 04:12:04 +01:00

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

View file

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