diff options
Diffstat (limited to 'src/de/gultsch/chat/xmpp/IqPacket.java')
-rw-r--r-- | src/de/gultsch/chat/xmpp/IqPacket.java | 11 |
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"); + } } |