/* * Copyright (c) 2014-2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include #include #include #include namespace Swift { class SWIFTEN_API ResultSet : public Payload { public: virtual ~ResultSet(); void setMaxItems(const boost::optional& maxItems) { maxItems_ = maxItems; } const boost::optional& getMaxItems() const { return maxItems_; } void setCount(const boost::optional& count) { count_ = count; } const boost::optional& getCount() const { return count_; } void setIndex(const boost::optional& index) { index_ = index; } const boost::optional& getIndex() const { return index_; } void setFirstIDIndex(const boost::optional& firstIndex) { firstIndex_ = firstIndex; } const boost::optional& getFirstIDIndex() const { return firstIndex_; } void setFirstID(const boost::optional& firstID) { firstID_ = firstID; } const boost::optional& getFirstID() const { return firstID_; } void setLastID(const boost::optional& lastID) { lastID_ = lastID; } const boost::optional& getLastID() const { return lastID_; } void setBefore(const boost::optional& before) { before_ = before; } const boost::optional& getBefore() const { return before_; } void setAfter(const boost::optional& after) { after_ = after; } const boost::optional& getAfter() const { return after_; } private: boost::optional maxItems_; boost::optional count_; boost::optional index_; boost::optional firstIndex_; boost::optional firstID_; boost::optional lastID_; boost::optional before_; boost::optional after_; }; }