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 
11 #include "queries.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
15  class GetAccountDetail final
16  : public CopyableProto<interface::GetAccountDetail,
17  iroha::protocol::Query,
18  GetAccountDetail> {
19  public:
20  template <typename QueryType>
21  explicit GetAccountDetail(QueryType &&query);
22 
24 
25  GetAccountDetail(GetAccountDetail &&o) noexcept;
26 
27  const interface::types::AccountIdType &accountId() const override;
28 
29  boost::optional<interface::types::AccountDetailKeyType> key() const override;
30 
31  boost::optional<interface::types::AccountIdType> writer() const override;
32 
33  private:
34  // ------------------------------| fields |-------------------------------
35 
36  const iroha::protocol::GetAccountDetail &account_detail_;
37  };
38  } // namespace proto
39 } // namespace shared_model
40 
41 #endif // IROHA_PROTO_GET_ACCOUNT_DETAIL_HPP
boost::optional< interface::types::AccountIdType > writer() const override
Definition: proto_get_account_detail.cpp:42
std::string AccountIdType
Type of account id.
Definition: types.hpp:37
const interface::types::AccountIdType & accountId() const override
Definition: proto_get_account_detail.cpp:29
GetAccountDetail(QueryType &&query)
Definition: proto_get_account_detail.cpp:12
boost::optional< interface::types::AccountDetailKeyType > key() const override
Definition: proto_get_account_detail.cpp:36
Definition: command_executor.hpp:12
Definition: trivial_proto.hpp:45
Definition: proto_get_account_detail.hpp:15