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 <boost/optional.hpp>
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 boost::optional<const interface::AssetPaginationMeta &>
30  paginationMeta() const = 0;
31 
32  std::string toString() const override;
33 
34  bool operator==(const ModelType &rhs) const override;
35  };
36  } // namespace interface
37 } // namespace shared_model
38 
39 #endif // IROHA_SHARED_MODEL_GET_ACCOUNT_ASSETS_HPP
virtual const types::AccountIdType & accountId() const =0
virtual boost::optional< const interface::AssetPaginationMeta & > paginationMeta() const =0
Get the query pagination metadata.
std::string AccountIdType
Type of account id.
Definition: types.hpp:39
bool operator==(const ModelType &rhs) const override
Definition: get_account_assets.cpp:23
Definition: model_primitive.hpp:23
std::string toString() const override
Definition: get_account_assets.cpp:13
Definition: command_executor.hpp:12
Definition: get_account_assets.hpp:20