mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-26 20:47:58 +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:
parent
fe6b9f2693
commit
7b02479f66
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue