hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_get_account_detail.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_GET_ACCOUNT_DETAIL_HPP
7 #define IROHA_PROTO_GET_ACCOUNT_DETAIL_HPP
8 
10 
11 #include <optional>
13 #include "queries.pb.h"
14 
15 namespace shared_model {
16  namespace proto {
18  public:
20 
21  const interface::types::AccountIdType &accountId() const override;
22 
23  std::optional<interface::types::AccountDetailKeyType> key()
24  const override;
25 
26  std::optional<interface::types::AccountIdType> writer() const override;
27 
28  std::optional<
29  std::reference_wrapper<const interface::AccountDetailPaginationMeta>>
30  paginationMeta() const override;
31 
32  private:
33  // ------------------------------| fields |-------------------------------
34 
35  const iroha::protocol::Query &query_;
36  const iroha::protocol::GetAccountDetail &account_detail_;
37  const std::optional<const AccountDetailPaginationMeta> pagination_meta_;
38  };
39  } // namespace proto
40 } // namespace shared_model
41 
42 #endif // IROHA_PROTO_GET_ACCOUNT_DETAIL_HPP
std::optional< interface::types::AccountDetailKeyType > key() const override
Definition: proto_get_account_detail.cpp:31
std::optional< std::reference_wrapper< const interface::AccountDetailPaginationMeta > > paginationMeta() const override
Get the query pagination metadata.
Definition: proto_get_account_detail.cpp:46
std::string AccountIdType
Type of account id.
Definition: types.hpp:38
const interface::types::AccountIdType & accountId() const override
Definition: proto_get_account_detail.cpp:24
Definition: get_account_detail.hpp:29
GetAccountDetail(iroha::protocol::Query &query)
Definition: proto_get_account_detail.cpp:11
std::optional< interface::types::AccountIdType > writer() const override
Definition: proto_get_account_detail.cpp:37
Definition: command_executor.hpp:12
Definition: proto_get_account_detail.hpp:17