hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::proto::AssetPaginationMeta Class Referencefinal

Provides query metadata for AccountAsset list pagination. More...

#include "proto_asset_pagination_meta.hpp"

Inheritance diagram for shared_model::proto::AssetPaginationMeta:
Inheritance graph
Collaboration diagram for shared_model::proto::AssetPaginationMeta:
Collaboration graph

Public Member Functions

 AssetPaginationMeta (iroha::protocol::AssetPaginationMeta &meta)
 
interface::types::TransactionsNumberType pageSize () const override
 Get the requested page size. More...
 
boost::optional< interface::types::AssetIdTypefirstAssetId () const override
 Get the first requested asset, if provided. More...
 
- Public Member Functions inherited from shared_model::interface::AssetPaginationMeta
std::string toString () const override
 
bool operator== (const ModelType &rhs) const override
 
- Public Member Functions inherited from shared_model::interface::ModelPrimitive< AssetPaginationMeta >
virtual bool operator== (const ModelType &rhs) const=0
 
virtual bool operator!= (const ModelType &rhs) const
 
virtual ~ModelPrimitive ()=default
 

Additional Inherited Members

- Public Types inherited from shared_model::interface::ModelPrimitive< AssetPaginationMeta >
using ModelType = AssetPaginationMeta
 

Detailed Description

Provides query metadata for AccountAsset list pagination.

Constructor & Destructor Documentation

◆ AssetPaginationMeta()

AssetPaginationMeta::AssetPaginationMeta ( iroha::protocol::AssetPaginationMeta &  meta)
explicit

Member Function Documentation

◆ firstAssetId()

boost::optional< types::AssetIdType > AssetPaginationMeta::firstAssetId ( ) const
overridevirtual

Get the first requested asset, if provided.

Implements shared_model::interface::AssetPaginationMeta.

◆ pageSize()

types::TransactionsNumberType AssetPaginationMeta::pageSize ( ) const
overridevirtual

Get the requested page size.

Implements shared_model::interface::AssetPaginationMeta.


The documentation for this class was generated from the following files: