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

Inherits Object.

Description

Contains result of gift upgrading.

Public Fields

object_ptr< upgradedGiftgift_
 The upgraded gift.
 
bool is_saved_
 True, if the gift is displayed on the user's profile page.
 
bool can_be_transferred_
 True, if the gift can be transferred to another user.
 
int53 transfer_star_count_
 Number of Telegram Stars that must be paid to transfer the upgraded gift.
 
int32 export_date_
 Point in time (Unix timestamp) when the gift can be transferred to TON blockchain as an NFT.
 

Public Instance Methods

 upgradeGiftResult ()
 
 upgradeGiftResult (object_ptr< upgradedGift > &&gift_, bool is_saved_, bool can_be_transferred_, int53 transfer_star_count_, int32 export_date_)
 
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 = 1033798449
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ upgradeGiftResult() [1/2]

Contains result of gift upgrading.

◆ upgradeGiftResult() [2/2]

upgradeGiftResult ( object_ptr< upgradedGift > &&  gift_,
bool  is_saved_,
bool  can_be_transferred_,
int53  transfer_star_count_,
int32  export_date_ 
)

Contains result of gift upgrading.

Parameters
[in]gift_The upgraded gift.
[in]is_saved_True, if the gift is displayed on the user's profile page.
[in]can_be_transferred_True, if the gift can be transferred to another user.
[in]transfer_star_count_Number of Telegram Stars that must be paid to transfer the upgraded gift.
[in]export_date_Point in time (Unix timestamp) when the gift can be transferred to TON blockchain as an NFT.

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: