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 
12 #include "qry_responses.pb.h"
13 
14 namespace shared_model {
15  namespace proto {
16  class AccountResponse final
17  : public CopyableProto<interface::AccountResponse,
18  iroha::protocol::QueryResponse,
19  AccountResponse> {
20  public:
21  template <typename QueryResponseType>
22  explicit AccountResponse(QueryResponseType &&queryResponse);
23 
25 
27 
28  const interface::Account &account() const override;
29 
30  const AccountRolesIdType &roles() const override;
31 
32  private:
33  const iroha::protocol::AccountResponse &account_response_;
34 
35  const AccountRolesIdType account_roles_;
36 
37  const shared_model::proto::Account account_;
38  };
39  } // namespace proto
40 } // namespace shared_model
41 
42 #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:38
Definition: account.hpp:16
const AccountRolesIdType & roles() const override
Definition: proto_account_response.cpp:42
std::vector< types::RoleIdType > AccountRolesIdType
Collection of role_id types.
Definition: account_response.hpp:21
AccountResponse(QueryResponseType &&queryResponse)
Definition: proto_account_response.cpp:14
Definition: command_executor.hpp:12
Definition: trivial_proto.hpp:45