diff options
author | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-02-20 17:00:50 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-02-20 17:00:50 +0100 |
commit | c82179c0b8728a9c2cd567d4227c60c758a1e682 (patch) | |
tree | b866a099bb79225bf31a6498374f24f757af163e /src/de/gultsch/chat/xmpp | |
parent | 94ab61d5c0b060e2aea5caf58ac06864f980956b (diff) |
adding and removing roster items now possible. basic error display on error messages
Diffstat (limited to 'src/de/gultsch/chat/xmpp')
-rw-r--r-- | src/de/gultsch/chat/xmpp/MessagePacket.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/de/gultsch/chat/xmpp/MessagePacket.java b/src/de/gultsch/chat/xmpp/MessagePacket.java index 0d4d07d7..160a8c0a 100644 --- a/src/de/gultsch/chat/xmpp/MessagePacket.java +++ b/src/de/gultsch/chat/xmpp/MessagePacket.java @@ -7,6 +7,7 @@ public class MessagePacket extends Element { public static final int TYPE_UNKNOWN = 1; public static final int TYPE_NO = 2; public static final int TYPE_GROUPCHAT = 3; + public static final int TYPE_ERROR = 4; private MessagePacket(String name) { super(name); @@ -71,6 +72,8 @@ public class MessagePacket extends Element { return TYPE_CHAT; } else if (type.equals("groupchat")) { return TYPE_GROUPCHAT; + } else if (type.equals("error")) { + return TYPE_ERROR; } else { return TYPE_UNKNOWN; } |