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 
14 #include "queries.pb.h"
15 
16 namespace shared_model {
17  namespace proto {
18 
22  public:
23  using TransportType = iroha::protocol::AccountDetailPaginationMeta;
24 
26 
28 
29  size_t pageSize() const override;
30 
31  boost::optional<const interface::AccountDetailRecordId &> firstRecordId()
32  const override;
33 
34  private:
35  TransportType &proto_;
36  const boost::optional<const AccountDetailRecordId> first_record_id_;
37  };
38  } // namespace proto
39 } // namespace shared_model
40 
41 #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:20
Provides query metadata for account detail list pagination.
Definition: account_detail_pagination_meta.hpp:18
boost::optional< const interface::AccountDetailRecordId & > firstRecordId() const override
Get the first requested record id, if provided.
Definition: proto_account_detail_pagination_meta.cpp:27
iroha::protocol::AccountDetailPaginationMeta TransportType
Definition: proto_account_detail_pagination_meta.hpp:23
size_t pageSize() const override
Get the requested page size.
Definition: proto_account_detail_pagination_meta.cpp:22
AccountDetailPaginationMeta(TransportType &proto)
Definition: proto_account_detail_pagination_meta.cpp:10
Definition: command_executor.hpp:12