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

Provides query metadata for any transaction list pagination. More...

#include "proto_tx_pagination_meta.hpp"

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

Public Member Functions

 TxPaginationMeta (iroha::protocol::TxPaginationMeta &meta)
interface::types::TransactionsNumberType pageSize () const override
 Get the requested page size. More...
std::optional< interface::types::HashTypefirstTxHash () const override
 Get the first requested transaction hash, if provided. More...
- Public Member Functions inherited from shared_model::interface::TxPaginationMeta
std::string toString () const override
bool operator== (const ModelType &rhs) const override
- Public Member Functions inherited from shared_model::interface::ModelPrimitive< TxPaginationMeta >
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< TxPaginationMeta >
using ModelType = TxPaginationMeta

Detailed Description

Provides query metadata for any transaction list pagination.

Constructor & Destructor Documentation

◆ TxPaginationMeta()

TxPaginationMeta::TxPaginationMeta ( iroha::protocol::TxPaginationMeta &  meta)

Member Function Documentation

◆ firstTxHash()

std::optional< types::HashType > TxPaginationMeta::firstTxHash ( ) const

Get the first requested transaction hash, if provided.

Implements shared_model::interface::TxPaginationMeta.

Here is the call graph for this function:

◆ pageSize()

types::TransactionsNumberType TxPaginationMeta::pageSize ( ) const

Get the requested page size.

Implements shared_model::interface::TxPaginationMeta.

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