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

Inherits Object.

Description

Describes a possibly non-integer Telegram Star amount.

Public Member Functions

 starAmount ()
 starAmount (int53 star_count_, int32 nanostar_count_)
void store (TlStorerToString &s, const char *field_name) const final
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 nanostar_count_
 The number of 1/1000000000 shares of Telegram Stars; from -999999999 to 999999999.
int53 star_count_
 The integer Telegram Star amount rounded to 0.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ starAmount() [1/2]

starAmount ( )

Describes a possibly non-integer Telegram Star amount.

◆ starAmount() [2/2]

starAmount ( int53 star_count_,
int32 nanostar_count_ )

Describes a possibly non-integer Telegram Star amount.

Parameters
[in]star_count_The integer Telegram Star amount rounded to 0.
[in]nanostar_count_The number of 1/1000000000 shares of Telegram Stars; from -999999999 to 999999999.

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: