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 
12 #include "queries.pb.h"
13 
14 namespace shared_model {
15  namespace proto {
16 
18  class TxPaginationMeta final
19  : public TrivialProto<interface::TxPaginationMeta,
20  iroha::protocol::TxPaginationMeta> {
21  public:
22  explicit TxPaginationMeta(const TransportType &query);
23  explicit TxPaginationMeta(TransportType &&query);
25  TxPaginationMeta(TxPaginationMeta &&o) noexcept;
26 
28 
29  boost::optional<interface::types::HashType> firstTxHash() const override;
30  };
31  } // namespace proto
32 } // namespace shared_model
33 
34 #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:30
TxPaginationMeta(const TransportType &query)
Definition: proto_tx_pagination_meta.cpp:14
Provides query metadata for any transaction list pagination.
Definition: proto_tx_pagination_meta.hpp:18
iroha::protocol::TxPaginationMeta TransportType
Definition: trivial_proto.hpp:21
uint16_t TransactionsNumberType
Type of a number of transactions in block and query response page.
Definition: types.hpp:81
Definition: trivial_proto.hpp:19
Definition: command_executor.hpp:12
interface::types::TransactionsNumberType pageSize() const override
Get the requested page size.
Definition: proto_tx_pagination_meta.cpp:26