hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_get_account_assets.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_GET_ACCOUNT_ASSETS_H
7 #define IROHA_PROTO_GET_ACCOUNT_ASSETS_H
8 
10 
11 #include <optional>
13 #include "queries.pb.h"
14 
15 namespace shared_model {
16  namespace proto {
18  public:
20 
21  const interface::types::AccountIdType &accountId() const override;
22 
23  std::optional<
24  std::reference_wrapper<const interface::AssetPaginationMeta>>
25  paginationMeta() const override;
26 
27  private:
28  // ------------------------------| fields |-------------------------------
29 
30  const iroha::protocol::GetAccountAssets &account_assets_;
31  const std::optional<const AssetPaginationMeta> pagination_meta_;
32  };
33  } // namespace proto
34 } // namespace shared_model
35 
36 #endif // IROHA_PROTO_GET_ACCOUNT_ASSETS_H
Definition: proto_get_account_assets.hpp:17
const interface::types::AccountIdType & accountId() const override
Definition: proto_get_account_assets.cpp:23
std::optional< std::reference_wrapper< const interface::AssetPaginationMeta > > paginationMeta() const override
Get the query pagination metadata.
Definition: proto_get_account_assets.cpp:28
std::string AccountIdType
Type of account id.
Definition: types.hpp:38
GetAccountAssets(iroha::protocol::Query &query)
Definition: proto_get_account_assets.cpp:11
Definition: command_executor.hpp:13
Definition: get_account_assets.hpp:20