1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-15 20:12:04 +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:
Matt Tucker 2003-06-19 14:46:04 +00:00 committed by mtucker
parent 5673eca059
commit b9778d77ab

View file

@ -332,6 +332,11 @@ public class RosterPacket extends IQ {
*/
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) {
if (value == null) {
return null;
@ -349,6 +354,9 @@ public class RosterPacket extends IQ {
else if ("both".equals(value)) {
return BOTH;
}
else if ("remove".equals(value)) {
return REMOVE;
}
else {
return null;
}