List of all members | Public Fields | Public Instance Methods | Static Public Attributes
starTransaction Class Referencefinal

Inherits Object.

Description

Represents a transaction changing the amount of owned Telegram Stars.

Public Fields

string id_
 Unique identifier of the transaction.
 
int53 star_count_
 The amount of added owned Telegram Stars; negative for outgoing transactions.
 
bool is_refund_
 True, if the transaction is a refund of a previous transaction.
 
int32 date_
 Point in time (Unix timestamp) when the transaction was completed.
 
object_ptr< StarTransactionPartnerpartner_
 Source of the incoming transaction, or its recipient for outgoing transactions.
 

Public Instance Methods

 starTransaction ()
 
 starTransaction (string const &id_, int53 star_count_, bool is_refund_, int32 date_, object_ptr< StarTransactionPartner > &&partner_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Instance Methods inherited from TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ starTransaction() [1/2]

Represents a transaction changing the amount of owned Telegram Stars.

◆ starTransaction() [2/2]

starTransaction ( string const &  id_,
int53  star_count_,
bool  is_refund_,
int32  date_,
object_ptr< StarTransactionPartner > &&  partner_ 
)

Represents a transaction changing the amount of owned Telegram Stars.

Parameters
[in]id_Unique identifier of the transaction.
[in]star_count_The amount of added owned Telegram Stars; 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]partner_Source of the incoming transaction, or its recipient for outgoing transactions.

Method 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: