hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_asset_response.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_PROTO_ASSET_RESPONSE_HPP
7 #define IROHA_SHARED_MODEL_PROTO_ASSET_RESPONSE_HPP
8 
12 #include "qry_responses.pb.h"
13 
14 namespace shared_model {
15  namespace proto {
16  class AssetResponse final
17  : public CopyableProto<interface::AssetResponse,
18  iroha::protocol::QueryResponse,
19  AssetResponse> {
20  public:
21  template <typename QueryResponseType>
22  explicit AssetResponse(QueryResponseType &&queryResponse);
23 
24  AssetResponse(const AssetResponse &o);
25 
27 
28  const Asset &asset() const override;
29 
30  private:
31  const iroha::protocol::AssetResponse &asset_response_;
32 
33  const Asset asset_;
34  };
35  } // namespace proto
36 } // namespace shared_model
37 
38 #endif // IROHA_SHARED_MODEL_PROTO_ASSET_RESPONSE_HPP
Definition: proto_asset_response.hpp:16
Definition: asset.hpp:16
const Asset & asset() const override
Definition: proto_asset_response.cpp:27
Definition: command_executor.hpp:12
Definition: trivial_proto.hpp:45
AssetResponse(QueryResponseType &&queryResponse)
Definition: proto_asset_response.cpp:12