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 <boost/optional.hpp>
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  boost::optional<const interface::AccountDetailRecordId &> firstRecordId()
33  const override;
34 
35  private:
36  TransportType &proto_;
37  const boost::optional<const AccountDetailRecordId> first_record_id_;
38  };
39  } // namespace proto
40 } // namespace shared_model
41 
42 #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
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:24
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