diff options
Diffstat (limited to 'Swiften/Elements/PubSubItem.h')
-rw-r--r-- | Swiften/Elements/PubSubItem.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Swiften/Elements/PubSubItem.h b/Swiften/Elements/PubSubItem.h index ba13150..161b733 100644 --- a/Swiften/Elements/PubSubItem.h +++ b/Swiften/Elements/PubSubItem.h @@ -1,3 +1,3 @@ /* - * Copyright (c) 2013-2017 Isode Limited. + * Copyright (c) 2013-2018 Isode Limited. * All rights reserved. @@ -20,2 +20,3 @@ namespace Swift { PubSubItem(); + PubSubItem(const std::string& id); @@ -24,3 +25,3 @@ namespace Swift { const std::vector< std::shared_ptr<Payload> >& getData() const { - return data; + return data_; } @@ -28,3 +29,3 @@ namespace Swift { void setData(const std::vector< std::shared_ptr<Payload> >& value) { - this->data = value ; + this->data_ = value ; } @@ -32,3 +33,3 @@ namespace Swift { void addData(std::shared_ptr<Payload> value) { - this->data.push_back(value); + this->data_.push_back(value); } @@ -36,3 +37,3 @@ namespace Swift { const std::string& getID() const { - return id; + return id_; } @@ -40,9 +41,8 @@ namespace Swift { void setID(const std::string& value) { - this->id = value ; + this->id_ = value ; } - private: - std::vector< std::shared_ptr<Payload> > data; - std::string id; + std::vector< std::shared_ptr<Payload> > data_; + std::string id_; }; |