diff options
author | Gurmeen Bindra <gurmeen.bindra@isode.com> | 2012-04-17 08:59:20 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-04-19 10:45:48 (GMT) |
commit | c040dd31cf285f9e2ffddab859586badf6ae059e (patch) | |
tree | 0f24f533afce95dd85da16a01733d7f7f42087bb /src/com/isode/stroke/elements/MUCInvitationPayload.java | |
parent | cb7cb7fdb0564bd7c27680b371588a45277c000a (diff) | |
download | stroke-c040dd31cf285f9e2ffddab859586badf6ae059e.zip stroke-c040dd31cf285f9e2ffddab859586badf6ae059e.tar.bz2 |
Port elements for MUC Administration
This patch ports basic elements from swiftern to stroke.
This includes various types od MUC Payloads.
Test-information:
the junits for the parsers (still WIP) code works fine.
Diffstat (limited to 'src/com/isode/stroke/elements/MUCInvitationPayload.java')
-rw-r--r-- | src/com/isode/stroke/elements/MUCInvitationPayload.java | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/src/com/isode/stroke/elements/MUCInvitationPayload.java b/src/com/isode/stroke/elements/MUCInvitationPayload.java new file mode 100644 index 0000000..9d0195b --- /dev/null +++ b/src/com/isode/stroke/elements/MUCInvitationPayload.java @@ -0,0 +1,110 @@ +/* + * 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 a MUC Invitation Payload + * + */ +public class MUCInvitationPayload extends Payload { + private boolean continuation_; + private JID jid_; + private String password_; + private String reason_; + private String thread_; + + /** + * Create the payload + */ + public MUCInvitationPayload() { + continuation_= false; + } + + /** + * Set the continuation value + * @param b value to set + */ + public void setIsContinuation(boolean b) { + continuation_ = b; + } + + /** + * Get the continuation value + * @return continuation value + */ + public boolean getIsContinuation() { + return continuation_; + } + + /** + * Set the jabber ID + * @param jid jabber Id, not null + */ + public void setJID(JID jid) { + jid_ = jid; + } + + /** + * Get the jabber ID + * @return jabber ID, can be null if not set + */ + public JID getJID(){ + return jid_; + } + + /** + * Set the password + * @param password not null + */ + public void setPassword(String password) { + password_ = password; + } + + /** + * Get the password + * @return password, can be null if not set + */ + public String getPassword() { + return password_; + } + + /** + * Set the reason text + * @param text reason text, not null + */ + public void setReason(String text) { + reason_ = text; + } + + /** + * Get the reason value + * @return reason value, null if not set + */ + public String getReason() { + return reason_; + } + + /** + * Set the value of describing the thread + * @param thread thread string, not null + */ + public void setThread(String thread) { + thread_ = thread; + } + + /** + * Get the string value for thread + * @return thread value, null if not set + */ + public String getThread() { + return thread_; + } +} |