From b9778d77ab4f5ae972d110a5aaf2bde892d2b775 Mon Sep 17 00:00:00 2001 From: Matt Tucker Date: Thu, 19 Jun 2003 14:46:04 +0000 Subject: [PATCH] Added REMOVE item type. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1968 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/packet/RosterPacket.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/org/jivesoftware/smack/packet/RosterPacket.java b/source/org/jivesoftware/smack/packet/RosterPacket.java index 091d033f6..3bcbd4eaa 100644 --- a/source/org/jivesoftware/smack/packet/RosterPacket.java +++ b/source/org/jivesoftware/smack/packet/RosterPacket.java @@ -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; }