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/MUCAdminPayload.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/MUCAdminPayload.java')
-rw-r--r-- | src/com/isode/stroke/elements/MUCAdminPayload.java | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/com/isode/stroke/elements/MUCAdminPayload.java b/src/com/isode/stroke/elements/MUCAdminPayload.java new file mode 100644 index 0000000..e6f6b60 --- /dev/null +++ b/src/com/isode/stroke/elements/MUCAdminPayload.java @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2012, Isode Limited, London, England. + * All rights reserved. + */ +/* + * Copyright (c) 2010, Kevin Smith + * All rights reserved. + */ +package com.isode.stroke.elements; + +import java.util.Vector; + +/** + * Class representing MUC Admin Payload + * + */ +public class MUCAdminPayload extends Payload { + + /** + * Create the object + */ + public MUCAdminPayload() { + } + + /** + * Add a MUC Item to the payload + * @param item MUC Item to be added, not null + */ + public void addItem(MUCItem item) { + items_.add(item); + } + + /** + * Get the MUC Items from the payload + * @return list of MUC items, can be empty but not null + */ + public Vector<MUCItem> getItems() { + return items_; + } + + private Vector<MUCItem> items_ = new Vector<MUCItem>(); +} |