hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
get_account_assets.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_GET_ACCOUNT_ASSETS_HPP
7 #define IROHA_SHARED_MODEL_GET_ACCOUNT_ASSETS_HPP
8 
9 #include <optional>
12 
13 namespace shared_model {
14  namespace interface {
15  class AssetPaginationMeta;
16 
20  class GetAccountAssets : public ModelPrimitive<GetAccountAssets> {
21  public:
25  virtual const types::AccountIdType &accountId() const = 0;
26 
28  // TODO 2019.05.24 mboldyrev IR-516 remove optional
29  virtual std::optional<
30  std::reference_wrapper<const interface::AssetPaginationMeta>>
31  paginationMeta() const = 0;
32 
33  std::string toString() const override;
34 
35  bool operator==(const ModelType &rhs) const override;
36  };
37  } // namespace interface
38 } // namespace shared_model
39 
40 #endif // IROHA_SHARED_MODEL_GET_ACCOUNT_ASSETS_HPP
virtual const types::AccountIdType & accountId() const =0
GetAccountAssets ModelType
Definition: model_primitive.hpp:27
std::string AccountIdType
Type of account id.
Definition: types.hpp:38
bool operator==(const ModelType &rhs) const override
Definition: get_account_assets.cpp:23
virtual std::optional< std::reference_wrapper< const interface::AssetPaginationMeta > > paginationMeta() const =0
Get the query pagination metadata.
Definition: model_primitive.hpp:22
std::string toString() const override
Definition: get_account_assets.cpp:13
Definition: command_executor.hpp:12
Definition: get_account_assets.hpp:20