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 
13 #include "queries.pb.h"
14 
15 namespace shared_model {
16  namespace proto {
17  class GetAccountAssets final
18  : public TrivialProto<interface::GetAccountAssets,
19  iroha::protocol::Query> {
20  public:
21  template <typename QueryType>
22  explicit GetAccountAssets(QueryType &&query);
23 
25 
26  GetAccountAssets(GetAccountAssets &&o) noexcept;
27 
28  const interface::types::AccountIdType &accountId() const override;
29 
30  boost::optional<const interface::AssetPaginationMeta &> paginationMeta()
31  const override;
32 
33  private:
34  // ------------------------------| fields |-------------------------------
35 
36  const iroha::protocol::GetAccountAssets &account_assets_;
37  const boost::optional<const AssetPaginationMeta> pagination_meta_;
38  };
39  } // namespace proto
40 } // namespace shared_model
41 
42 #endif // IROHA_PROTO_GET_ACCOUNT_ASSETS_H
GetAccountAssets(QueryType &&query)
Definition: proto_get_account_assets.cpp:12
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:43
const interface::types::AccountIdType & accountId() const override
Definition: proto_get_account_assets.cpp:38
std::string AccountIdType
Type of account id.
Definition: types.hpp:39
Definition: trivial_proto.hpp:19
Definition: command_executor.hpp:12