TDLib
Loading...
Searching...
No Matches
tonTransaction Class Referencefinal

Inherits Object.

Description

Represents a transaction changing the amount of owned TON Grams.

Public Member Functions

void store (TlStorerToString &s, const char *field_name) const final
 tonTransaction ()
 tonTransaction (string const &id_, int53 gram_amount_, bool is_refund_, int32 date_, object_ptr< TonTransactionType > &&type_)
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

int32 date_
 Point in time (Unix timestamp) when the transaction was completed.
int53 gram_amount_
 The amount of added owned Grams, in the smallest units of the cryptocurrency; negative for outgoing transactions.
string id_
 Unique identifier of the transaction.
bool is_refund_
 True, if the transaction is a refund of a previous transaction.
object_ptr< TonTransactionType > type_
 Type of the transaction.

Static Public Attributes

static const std::int32_t ID = -412943290
 Identifier uniquely determining a type of the object.

Constructor & Destructor Documentation

◆ tonTransaction() [1/2]

tonTransaction ( )

Represents a transaction changing the amount of owned TON Grams.

◆ tonTransaction() [2/2]

tonTransaction ( string const & id_,
int53 gram_amount_,
bool is_refund_,
int32 date_,
object_ptr< TonTransactionType > && type_ )

Represents a transaction changing the amount of owned TON Grams.

Parameters
[in]id_Unique identifier of the transaction.
[in]gram_amount_The amount of added owned Grams, in the smallest units of the cryptocurrency; negative for outgoing transactions.
[in]is_refund_True, if the transaction is a refund of a previous transaction.
[in]date_Point in time (Unix timestamp) when the transaction was completed.
[in]type_Type of the transaction.

Member Function Documentation

◆ store()

void store ( TlStorerToString & s,
const char * field_name ) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


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