hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_account_detail_pagination_meta.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_PROTO_MODEL_QUERY_ACCOUNT_DETAIL_PAGINATION_META_HPP
7 #define IROHA_SHARED_PROTO_MODEL_QUERY_ACCOUNT_DETAIL_PAGINATION_META_HPP
8 
10 
11 #include <optional>
15 #include "queries.pb.h"
16 
17 namespace shared_model {
18  namespace proto {
19 
23  public:
24  using TransportType = iroha::protocol::AccountDetailPaginationMeta;
25 
27 
29 
30  size_t pageSize() const override;
31 
32  std::optional<
33  std::reference_wrapper<const interface::AccountDetailRecordId>>
34  firstRecordId() const override;
35 
36  private:
37  TransportType &proto_;
38  const std::optional<const AccountDetailRecordId> first_record_id_;
39  };
40  } // namespace proto
41 } // namespace shared_model
42 
43 #endif // IROHA_SHARED_PROTO_MODEL_QUERY_ACCOUNT_DETAIL_PAGINATION_META_HPP
Provides query metadata for AccountDetail list pagination.
Definition: proto_account_detail_pagination_meta.hpp:21
Provides query metadata for account detail list pagination.
Definition: account_detail_pagination_meta.hpp:18
std::optional< std::reference_wrapper< const interface::AccountDetailRecordId > > firstRecordId() const override
Get the first requested record id, if provided.
Definition: proto_account_detail_pagination_meta.cpp:29
iroha::protocol::AccountDetailPaginationMeta TransportType
Definition: proto_account_detail_pagination_meta.hpp:24
size_t pageSize() const override
Get the requested page size.
Definition: proto_account_detail_pagination_meta.cpp:23
AccountDetailPaginationMeta(TransportType &proto)
Definition: proto_account_detail_pagination_meta.cpp:10
Definition: command_executor.hpp:13