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 CopyableProto<interface::GetAccountAssets,
19  iroha::protocol::Query,
20  GetAccountAssets> {
21  public:
22  template <typename QueryType>
23  explicit GetAccountAssets(QueryType &&query);
24 
26 
27  GetAccountAssets(GetAccountAssets &&o) noexcept;
28 
29  const interface::types::AccountIdType &accountId() const override;
30 
31  boost::optional<const interface::AssetPaginationMeta &> paginationMeta()
32  const override;
33 
34  private:
35  // ------------------------------| fields |-------------------------------
36 
37  const iroha::protocol::GetAccountAssets &account_assets_;
38  const boost::optional<const AssetPaginationMeta> pagination_meta_;
39  };
40  } // namespace proto
41 } // namespace shared_model
42 
43 #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:37
Definition: command_executor.hpp:12
Definition: trivial_proto.hpp:45