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 
13 #include "queries.pb.h"
14 
15 namespace shared_model {
16  namespace proto {
17 
19  class AssetPaginationMeta final
20  : public CopyableProto<interface::AssetPaginationMeta,
21  iroha::protocol::AssetPaginationMeta,
22  AssetPaginationMeta> {
23  public:
24  explicit AssetPaginationMeta(const TransportType &query);
25  explicit AssetPaginationMeta(TransportType &&query);
28 
30 
31  boost::optional<interface::types::AssetIdType> firstAssetId()
32  const override;
33  };
34  } // namespace proto
35 } // namespace shared_model
36 
37 #endif // IROHA_SHARED_PROTO_MODEL_QUERY_ACCOUNT_ASSET_PAGINATION_META_HPP
Provides query metadata for AccountAsset list pagination.
Definition: proto_asset_pagination_meta.hpp:19
AssetPaginationMeta(const TransportType &query)
Definition: proto_asset_pagination_meta.cpp:12
boost::optional< interface::types::AssetIdType > firstAssetId() const override
Get the first requested asset, if provided.
Definition: proto_asset_pagination_meta.cpp:28
interface::types::TransactionsNumberType pageSize() const override
Get the requested page size.
Definition: proto_asset_pagination_meta.cpp:24
uint16_t TransactionsNumberType
Type of a number of transactions in block and query response page.
Definition: types.hpp:90
Definition: command_executor.hpp:12
Definition: trivial_proto.hpp:45