hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_account_asset_response.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_PROTO_ACCOUNT_ASSET_RESPONSE_HPP
7 #define IROHA_SHARED_MODEL_PROTO_ACCOUNT_ASSET_RESPONSE_HPP
8 
10 
13 #include "qry_responses.pb.h"
14 
15 namespace shared_model {
16  namespace proto {
18  public:
19  explicit AccountAssetResponse(
20  iroha::protocol::QueryResponse &query_response);
21 
23  const override;
24 
25  std::optional<interface::types::AssetIdType> nextAssetId() const override;
26 
27  size_t totalAccountAssetsNumber() const override;
28 
29  private:
30  const iroha::protocol::AccountAssetResponse &account_asset_response_;
31 
32  std::vector<AccountAsset> account_assets_;
33  const std::optional<interface::types::AssetIdType> next_asset_id_;
34  };
35  } // namespace proto
36 } // namespace shared_model
37 
38 #endif // IROHA_SHARED_MODEL_PROTO_ACCOUNT_ASSET_RESPONSE_HPP
size_t totalAccountAssetsNumber() const override
Definition: proto_account_asset_response.cpp:38
boost::any_range< AccountAsset, boost::random_access_traversal_tag, const AccountAsset & > AccountAssetCollectionType
Definition: range_types.hpp:33
const interface::types::AccountAssetCollectionType accountAssets() const override
Definition: proto_account_asset_response.cpp:29
AccountAssetResponse(iroha::protocol::QueryResponse &query_response)
Definition: proto_account_asset_response.cpp:11
Definition: proto_account_asset_response.hpp:17
std::optional< interface::types::AssetIdType > nextAssetId() const override
Definition: proto_account_asset_response.cpp:34
Definition: account_asset_response.hpp:20
Definition: command_executor.hpp:13