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 <boost/optional.hpp>
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  boost::optional<const interface::AssetPaginationMeta &> paginationMeta()
24  const override;
25 
26  private:
27  // ------------------------------| fields |-------------------------------
28 
29  const iroha::protocol::GetAccountAssets &account_assets_;
30  const boost::optional<const AssetPaginationMeta> pagination_meta_;
31  };
32  } // namespace proto
33 } // namespace shared_model
34 
35 #endif // IROHA_PROTO_GET_ACCOUNT_ASSETS_H
Definition: proto_get_account_assets.hpp:17
boost::optional< const interface::AssetPaginationMeta & > paginationMeta() const override
Get the query pagination metadata.
Definition: proto_get_account_assets.cpp:28
const interface::types::AccountIdType & accountId() const override
Definition: proto_get_account_assets.cpp:23
std::string AccountIdType
Type of account id.
Definition: types.hpp:39
GetAccountAssets(iroha::protocol::Query &query)
Definition: proto_get_account_assets.cpp:11
Definition: command_executor.hpp:12
Definition: get_account_assets.hpp:20