diff options
author | Richard Maudsley <richard.maudsley@isode.com> | 2014-02-04 09:49:24 (GMT) |
---|---|---|
committer | Richard Maudsley <richard.maudsley@isode.com> | 2014-03-07 14:28:58 (GMT) |
commit | a511087b1f57f1f6372374f41d0b4b7ebeef9930 (patch) | |
tree | a319c6c65f4c4722635f78ac564a823a370d011c /src/com/isode/stroke/elements/PubSubEventItem.java | |
parent | 535e1a979a164f807aa64bf2df2bb36e7015ff17 (diff) | |
download | stroke-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/PubSubEventItem.java')
-rw-r--r-- | src/com/isode/stroke/elements/PubSubEventItem.java | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/src/com/isode/stroke/elements/PubSubEventItem.java b/src/com/isode/stroke/elements/PubSubEventItem.java new file mode 100644 index 0000000..2086106 --- /dev/null +++ b/src/com/isode/stroke/elements/PubSubEventItem.java @@ -0,0 +1,61 @@ +/* +* 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 java.util.ArrayList; +import com.isode.stroke.elements.Payload; + +public class PubSubEventItem extends Payload { + +public PubSubEventItem() { +} + +public String getPublisher() { + return publisher_; +} + +public void setPublisher(String publisher) { + publisher_ = publisher; +} + +public ArrayList<Payload> getData() { + return data_; +} + +public void setData(ArrayList<Payload> data) { + data_ = data; +} + +public void addData(Payload value) { + data_.add(value); +} + +public String getNode() { + return node_; +} + +public void setNode(String node) { + node_ = node; +} + +public String getID() { + return id_; +} + +public void setID(String id) { + id_ = id; +} + +String publisher_; +ArrayList<Payload> data_ = new ArrayList<Payload>(); +String node_; +String id_; + +} |