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:
19 
21  virtual types::TransactionsNumberType pageSize() const = 0;
22 
24  virtual boost::optional<types::HashType> firstTxHash() const = 0;
25 
26  std::string toString() const override;
27 
28  bool operator==(const ModelType &rhs) const override;
29  };
30 
31  } // namespace interface
32 } // namespace shared_model
33 
34 #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:77
virtual boost::optional< types::HashType > firstTxHash() const =0
Get the first requested transaction hash, if provided.
Definition: model_primitive.hpp:23
Definition: command_executor.hpp:12