hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_account_detail_response.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_ACCOUNT_DETAIL_RESPONSE_HPP
7 #define IROHA_PROTO_ACCOUNT_DETAIL_RESPONSE_HPP
8 
10 
13 #include "qry_responses.pb.h"
14 
15 namespace shared_model {
16  namespace proto {
19  public:
20  explicit AccountDetailResponse(
21  iroha::protocol::QueryResponse &query_response);
22 
23  const interface::types::DetailType &detail() const override;
24 
25  size_t totalNumber() const override;
26 
27  std::optional<std::reference_wrapper<
29  nextRecordId() const override;
30 
31  private:
32  const iroha::protocol::AccountDetailResponse &account_detail_response_;
33  const std::optional<const AccountDetailRecordId> next_record_id_;
34  };
35  } // namespace proto
36 } // namespace shared_model
37 
38 #endif // IROHA_PROTO_ACCOUNT_DETAIL_RESPONSE_HPP
const interface::types::DetailType & detail() const override
Definition: proto_account_detail_response.cpp:23
Provides query metadata for account detail list pagination.
Definition: account_detail_record_id.hpp:17
std::string DetailType
Type of detail.
Definition: types.hpp:75
Definition: account_detail_response.hpp:20
AccountDetailResponse(iroha::protocol::QueryResponse &query_response)
Definition: proto_account_detail_response.cpp:11
Definition: proto_account_detail_response.hpp:17
size_t totalNumber() const override
Definition: proto_account_detail_response.cpp:27
std::optional< std::reference_wrapper< const shared_model::interface::AccountDetailRecordId > > nextRecordId() const override
Definition: proto_account_detail_response.cpp:33
Definition: command_executor.hpp:12