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

Inherits Object.

Description

Contains information about Telegram Stars earned by a user or a chat.

Public Member Functions

 starRevenueStatus ()
 starRevenueStatus (object_ptr< starAmount > &&total_amount_, object_ptr< starAmount > &&current_amount_, object_ptr< starAmount > &&available_amount_, bool withdrawal_enabled_, int32 next_withdrawal_in_)
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

object_ptr< starAmount > available_amount_
 The Telegram Star amount that is available for withdrawal.
object_ptr< starAmount > current_amount_
 The Telegram Star amount that isn't withdrawn yet.
int32 next_withdrawal_in_
 Time left before the next withdrawal can be started, in seconds; 0 if withdrawal can be started now.
object_ptr< starAmount > total_amount_
 Total Telegram Star amount earned.
bool withdrawal_enabled_
 True, if Telegram Stars can be withdrawn now or later.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ starRevenueStatus() [1/2]

starRevenueStatus ( )

Contains information about Telegram Stars earned by a user or a chat.

◆ starRevenueStatus() [2/2]

starRevenueStatus ( object_ptr< starAmount > && total_amount_,
object_ptr< starAmount > && current_amount_,
object_ptr< starAmount > && available_amount_,
bool withdrawal_enabled_,
int32 next_withdrawal_in_ )

Contains information about Telegram Stars earned by a user or a chat.

Parameters
[in]total_amount_Total Telegram Star amount earned.
[in]current_amount_The Telegram Star amount that isn't withdrawn yet.
[in]available_amount_The Telegram Star amount that is available for withdrawal.
[in]withdrawal_enabled_True, if Telegram Stars can be withdrawn now or later.
[in]next_withdrawal_in_Time left before the next withdrawal can be started, in seconds; 0 if withdrawal can be started now.

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: