hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_tx_pagination_meta.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_PROTO_MODEL_QUERY_TX_PAGINATION_META_HPP
7 #define IROHA_SHARED_PROTO_MODEL_QUERY_TX_PAGINATION_META_HPP
8 
10 
12 #include "queries.pb.h"
13 
14 namespace shared_model {
15  namespace proto {
16 
19  public:
20  explicit TxPaginationMeta(iroha::protocol::TxPaginationMeta &meta);
21 
23 
24  boost::optional<interface::types::HashType> firstTxHash() const override;
25 
26  private:
27  const iroha::protocol::TxPaginationMeta &meta_;
28  };
29  } // namespace proto
30 } // namespace shared_model
31 
32 #endif // IROHA_SHARED_PROTO_MODEL_QUERY_TX_PAGINATION_META_HPP
boost::optional< interface::types::HashType > firstTxHash() const override
Get the first requested transaction hash, if provided.
Definition: proto_tx_pagination_meta.cpp:22
Provides query metadata for any transaction list pagination.
Definition: tx_pagination_meta.hpp:17
Provides query metadata for any transaction list pagination.
Definition: proto_tx_pagination_meta.hpp:18
uint16_t TransactionsNumberType
Type of a number of transactions in block and query response page.
Definition: types.hpp:81
Definition: command_executor.hpp:12
TxPaginationMeta(iroha::protocol::TxPaginationMeta &meta)
Definition: proto_tx_pagination_meta.cpp:15
interface::types::TransactionsNumberType pageSize() const override
Get the requested page size.
Definition: proto_tx_pagination_meta.cpp:18