hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
account_detail_pagination_meta.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_INTERFACE_MODEL_QUERY_ACCOUNT_DETAIL_PAGINATION_META_HPP
7 #define IROHA_SHARED_INTERFACE_MODEL_QUERY_ACCOUNT_DETAIL_PAGINATION_META_HPP
8 
9 #include <boost/optional.hpp>
13 
14 namespace shared_model {
15  namespace interface {
16 
19  : public ModelPrimitive<AccountDetailPaginationMeta> {
20  public:
22  virtual size_t pageSize() const = 0;
23 
25  virtual boost::optional<const AccountDetailRecordId &> firstRecordId()
26  const = 0;
27 
28  std::string toString() const override;
29 
30  bool operator==(const ModelType &rhs) const override;
31  };
32 
33  } // namespace interface
34 } // namespace shared_model
35 
36 #endif // IROHA_SHARED_INTERFACE_MODEL_QUERY_ACCOUNT_DETAIL_PAGINATION_META_HPP
virtual size_t pageSize() const =0
Get the requested page size.
bool operator==(const ModelType &rhs) const override
Definition: account_detail_pagination_meta.cpp:10
Provides query metadata for account detail list pagination.
Definition: account_detail_pagination_meta.hpp:18
std::string toString() const override
Definition: account_detail_pagination_meta.cpp:15
virtual boost::optional< const AccountDetailRecordId & > firstRecordId() const =0
Get the first requested record id, if provided.
Definition: model_primitive.hpp:22
Definition: command_executor.hpp:12