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 CopyableProto<interface::TxPaginationMeta,
20  iroha::protocol::TxPaginationMeta,
21  TxPaginationMeta> {
22  public:
23  explicit TxPaginationMeta(const TransportType &query);
24  explicit TxPaginationMeta(TransportType &&query);
26  TxPaginationMeta(TxPaginationMeta &&o) noexcept;
27 
29 
30  boost::optional<interface::types::HashType> firstTxHash() const override;
31  };
32  } // namespace proto
33 } // namespace shared_model
34 
35 #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
uint16_t TransactionsNumberType
Type of a number of transactions in block and query response page.
Definition: types.hpp:77
Definition: command_executor.hpp:12
Definition: trivial_proto.hpp:45
interface::types::TransactionsNumberType pageSize() const override
Get the requested page size.
Definition: proto_tx_pagination_meta.cpp:26