hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_asset_pagination_meta.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_PROTO_MODEL_QUERY_ACCOUNT_ASSET_PAGINATION_META_HPP
7 #define IROHA_SHARED_PROTO_MODEL_QUERY_ACCOUNT_ASSET_PAGINATION_META_HPP
8 
10 
12 #include "queries.pb.h"
13 
14 namespace shared_model {
15  namespace proto {
16 
19  public:
20  explicit AssetPaginationMeta(iroha::protocol::AssetPaginationMeta &meta);
21 
23 
24  boost::optional<interface::types::AssetIdType> firstAssetId()
25  const override;
26 
27  private:
28  const iroha::protocol::AssetPaginationMeta &meta_;
29  };
30  } // namespace proto
31 } // namespace shared_model
32 
33 #endif // IROHA_SHARED_PROTO_MODEL_QUERY_ACCOUNT_ASSET_PAGINATION_META_HPP
Provides query metadata for AccountAsset list pagination.
Definition: proto_asset_pagination_meta.hpp:18
AssetPaginationMeta(iroha::protocol::AssetPaginationMeta &meta)
Definition: proto_asset_pagination_meta.cpp:14
boost::optional< interface::types::AssetIdType > firstAssetId() const override
Get the first requested asset, if provided.
Definition: proto_asset_pagination_meta.cpp:22
interface::types::TransactionsNumberType pageSize() const override
Get the requested page size.
Definition: proto_asset_pagination_meta.cpp:18
uint16_t TransactionsNumberType
Type of a number of transactions in block and query response page.
Definition: types.hpp:81
Provides query metadata for asset list pagination.
Definition: asset_pagination_meta.hpp:17
Definition: command_executor.hpp:12