summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/isode/stroke/elements/MUCDestroyPayload.java')
-rw-r--r--src/com/isode/stroke/elements/MUCDestroyPayload.java58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/com/isode/stroke/elements/MUCDestroyPayload.java b/src/com/isode/stroke/elements/MUCDestroyPayload.java
new file mode 100644
index 0000000..86e7fa1
--- /dev/null
+++ b/src/com/isode/stroke/elements/MUCDestroyPayload.java
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2012, Isode Limited, London, England.
+ * All rights reserved.
+ */
+/*
+ * Copyright (c) 2011, Kevin Smith
+ * All rights reserved.
+ */
+package com.isode.stroke.elements;
+
+import com.isode.stroke.jid.JID;
+
+/**
+ * Class representing MUC Destroy Payload
+ *
+ */
+public class MUCDestroyPayload extends Payload{
+ private JID newVenue_;
+ private String reason_;
+
+ /**
+ * Create the Destroy payload
+ */
+ public MUCDestroyPayload() {
+ }
+
+ /**
+ * Get new venue jabber ID
+ * @return new venue, can be null if not set
+ */
+ public JID getNewVenue() {
+ return newVenue_;
+ }
+
+ /**
+ * Get the reason
+ * @return reason string, can be null if not set
+ */
+ public String getReason() {
+ return reason_;
+ }
+
+ /**
+ * Set the jabber ID for new Venue
+ * @param jid jabber ID, not null
+ */
+ public void setNewVenue(JID jid) {
+ newVenue_ = jid;
+ }
+
+ /**
+ * Set the reason string
+ * @param reason reason string, not null
+ */
+ public void setReason(String reason) {
+ reason_ = reason;
+ }
+}