aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/gultsch/chat/xmpp/IqPacket.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-01-31 00:33:01 +0100
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-01-31 00:33:01 +0100
commitc3e4f0eaacf8ab32ceab32b8f46e8b7d85c71cfb (patch)
tree7078095423ad0e7c35e2f9a1cf98e48127daa155 /src/de/gultsch/chat/xmpp/IqPacket.java
parent6c5c3ac2decac75ec3208d47912e67c4e1a33548 (diff)
parser works but some stuff still needs some refactoring
Diffstat (limited to '')
-rw-r--r--src/de/gultsch/chat/xmpp/IqPacket.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/de/gultsch/chat/xmpp/IqPacket.java b/src/de/gultsch/chat/xmpp/IqPacket.java
index 062bf1c0..eec66a64 100644
--- a/src/de/gultsch/chat/xmpp/IqPacket.java
+++ b/src/de/gultsch/chat/xmpp/IqPacket.java
@@ -6,6 +6,7 @@ public class IqPacket extends Element {
public static final int TYPE_SET = 0;
public static final int TYPE_RESULT = 1;
+ public static final int TYPE_GET = 2;
private IqPacket(String name) {
super(name);
@@ -18,9 +19,19 @@ public class IqPacket extends Element {
case TYPE_SET:
this.setAttribute("type", "set");
break;
+ case TYPE_GET:
+ this.setAttribute("type", "get");
+ break;
+ case TYPE_RESULT:
+ this.setAttribute("type", "result");
+ break;
default:
break;
}
}
+
+ public IqPacket() {
+ super("iq");
+ }
}