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 TrivialProto<interface::AssetPaginationMeta,
21  iroha::protocol::AssetPaginationMeta> {
22  public:
23  explicit AssetPaginationMeta(const TransportType &query);
24  explicit AssetPaginationMeta(TransportType &&query);
27 
29 
30  boost::optional<interface::types::AssetIdType> firstAssetId()
31  const override;
32  };
33  } // namespace proto
34 } // namespace shared_model
35 
36 #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
iroha::protocol::AssetPaginationMeta TransportType
Definition: trivial_proto.hpp:21
uint16_t TransactionsNumberType
Type of a number of transactions in block and query response page.
Definition: types.hpp:81
Definition: trivial_proto.hpp:19
Definition: command_executor.hpp:12