hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
asset_pagination_meta.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_INTERFACE_MODEL_QUERY_ACCOUNT_ASSET_PAGINATION_META_HPP
7 #define IROHA_SHARED_INTERFACE_MODEL_QUERY_ACCOUNT_ASSET_PAGINATION_META_HPP
8 
9 #include <boost/optional.hpp>
12 
13 namespace shared_model {
14  namespace interface {
15 
17  class AssetPaginationMeta : public ModelPrimitive<AssetPaginationMeta> {
18  public:
20  virtual types::TransactionsNumberType pageSize() const = 0;
21 
23  virtual boost::optional<types::AssetIdType> firstAssetId() const = 0;
24 
25  std::string toString() const override;
26 
27  bool operator==(const ModelType &rhs) const override;
28  };
29 
30  } // namespace interface
31 } // namespace shared_model
32 
33 #endif // IROHA_SHARED_INTERFACE_MODEL_QUERY_ACCOUNT_ASSET_PAGINATION_META_HPP
bool operator==(const ModelType &rhs) const override
Definition: asset_pagination_meta.cpp:10
virtual types::TransactionsNumberType pageSize() const =0
Get the requested page size.
AssetPaginationMeta ModelType
Definition: model_primitive.hpp:27
std::string toString() const override
Definition: asset_pagination_meta.cpp:14
uint16_t TransactionsNumberType
Type of a number of transactions in block and query response page.
Definition: types.hpp:81
Definition: model_primitive.hpp:22
Provides query metadata for asset list pagination.
Definition: asset_pagination_meta.hpp:17
Definition: command_executor.hpp:12
virtual boost::optional< types::AssetIdType > firstAssetId() const =0
Get the first requested asset, if provided.