hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_account_response.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_PROTO_ACCOUNT_RESPONSE_HPP
7 #define IROHA_SHARED_MODEL_PROTO_ACCOUNT_RESPONSE_HPP
8 
10 
12 #include "qry_responses.pb.h"
13 
14 namespace shared_model {
15  namespace proto {
17  public:
18  explicit AccountResponse(iroha::protocol::QueryResponse &query_response);
19 
20  const interface::Account &account() const override;
21 
22  const AccountRolesIdType &roles() const override;
23 
24  private:
25  const iroha::protocol::AccountResponse &account_response_;
26 
27  const AccountRolesIdType account_roles_;
28 
29  Account account_;
30  };
31  } // namespace proto
32 } // namespace shared_model
33 
34 #endif // IROHA_SHARED_MODEL_PROTO_ACCOUNT_RESPONSE_HPP
Definition: account.hpp:20
Definition: proto_account_response.hpp:16
const interface::Account & account() const override
Definition: proto_account_response.cpp:24
Definition: account.hpp:16
const AccountRolesIdType & roles() const override
Definition: proto_account_response.cpp:28
std::vector< types::RoleIdType > AccountRolesIdType
Collection of role_id types.
Definition: account_response.hpp:22
Definition: account_response.hpp:19
AccountResponse(iroha::protocol::QueryResponse &query_response)
Definition: proto_account_response.cpp:13
Definition: command_executor.hpp:13