hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
tx_pagination_meta.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_INTERFACE_MODEL_QUERY_TX_PAGINATION_META_HPP
7 #define IROHA_SHARED_INTERFACE_MODEL_QUERY_TX_PAGINATION_META_HPP
8 
9 #include <boost/optional.hpp>
12 
13 namespace shared_model {
14  namespace interface {
15 
17  class TxPaginationMeta : public ModelPrimitive<TxPaginationMeta> {
18  public:
20  virtual types::TransactionsNumberType pageSize() const = 0;
21 
23  virtual boost::optional<types::HashType> firstTxHash() const = 0;
24 
25  std::string toString() const override;
26 
27  bool operator==(const ModelType &rhs) const override;
28  };
29 
30  } // namespace interface
31 } // namespace shared_model
32 
33 #endif // IROHA_SHARED_INTERFACE_MODEL_QUERY_TX_PAGINATION_META_HPP
virtual types::TransactionsNumberType pageSize() const =0
Get the requested page size.
bool operator==(const ModelType &rhs) const override
Definition: tx_pagination_meta.cpp:12
Provides query metadata for any transaction list pagination.
Definition: tx_pagination_meta.hpp:17
std::string toString() const override
Definition: tx_pagination_meta.cpp:16
uint16_t TransactionsNumberType
Type of a number of transactions in block and query response page.
Definition: types.hpp:81
virtual boost::optional< types::HashType > firstTxHash() const =0
Get the first requested transaction hash, if provided.
Definition: model_primitive.hpp:22
Definition: command_executor.hpp:12