mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +01:00
Added REMOVE item type.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1968 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
5673eca059
commit
b9778d77ab
1 changed files with 8 additions and 0 deletions
|
@ -332,6 +332,11 @@ public class RosterPacket extends IQ {
|
||||||
*/
|
*/
|
||||||
public static final ItemType BOTH = new ItemType("both");
|
public static final ItemType BOTH = new ItemType("both");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The user wishes to stop receiving presence updates from the subscriber.
|
||||||
|
*/
|
||||||
|
public static final ItemType REMOVE = new ItemType("remove");
|
||||||
|
|
||||||
public static ItemType fromString(String value) {
|
public static ItemType fromString(String value) {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return null;
|
return null;
|
||||||
|
@ -349,6 +354,9 @@ public class RosterPacket extends IQ {
|
||||||
else if ("both".equals(value)) {
|
else if ("both".equals(value)) {
|
||||||
return BOTH;
|
return BOTH;
|
||||||
}
|
}
|
||||||
|
else if ("remove".equals(value)) {
|
||||||
|
return REMOVE;
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue