summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Maudsley <richard.maudsley@isode.com>2014-02-04 09:49:24 (GMT)
committerRichard Maudsley <richard.maudsley@isode.com>2014-03-07 14:28:58 (GMT)
commita511087b1f57f1f6372374f41d0b4b7ebeef9930 (patch)
treea319c6c65f4c4722635f78ac564a823a370d011c /src/com/isode/stroke/elements/PubSubOwnerAffiliation.java
parent535e1a979a164f807aa64bf2df2bb36e7015ff17 (diff)
downloadstroke-a511087b1f57f1f6372374f41d0b4b7ebeef9930.zip
stroke-a511087b1f57f1f6372374f41d0b4b7ebeef9930.tar.bz2
PubSub parsers and serializers, plus manager and test code.
Change-Id: Ie8ca77ba8dbcd83926d46307ad0e73d804ff7422
Diffstat (limited to 'src/com/isode/stroke/elements/PubSubOwnerAffiliation.java')
-rw-r--r--src/com/isode/stroke/elements/PubSubOwnerAffiliation.java48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/com/isode/stroke/elements/PubSubOwnerAffiliation.java b/src/com/isode/stroke/elements/PubSubOwnerAffiliation.java
new file mode 100644
index 0000000..d08bd3d
--- /dev/null
+++ b/src/com/isode/stroke/elements/PubSubOwnerAffiliation.java
@@ -0,0 +1,48 @@
+/*
+* Copyright (c) 2014, Isode Limited, London, England.
+* All rights reserved.
+*/
+/*
+* Copyright (c) 2014, Remko Tronçon.
+* All rights reserved.
+*/
+
+package com.isode.stroke.elements;
+
+import com.isode.stroke.jid.JID;
+import com.isode.stroke.elements.Payload;
+
+public class PubSubOwnerAffiliation extends Payload {
+public enum Type
+{
+ None,
+ Member,
+ Outcast,
+ Owner,
+ Publisher,
+ PublishOnly
+}
+
+public PubSubOwnerAffiliation() {
+}
+
+public JID getJID() {
+ return jid_;
+}
+
+public void setJID(JID jid) {
+ jid_ = jid;
+}
+
+public Type getType() {
+ return type_;
+}
+
+public void setType(Type type) {
+ type_ = type;
+}
+
+JID jid_;
+Type type_;
+
+}