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

Inherits Object.

Description

Contains result of gift upgrading.

Public Member Functions

void store (TlStorerToString &s, const char *field_name) const final
 upgradeGiftResult ()
 upgradeGiftResult (object_ptr< upgradedGift > &&gift_, string const &received_gift_id_, bool is_saved_, bool can_be_transferred_, int53 transfer_star_count_, int53 drop_original_details_star_count_, int32 next_transfer_date_, int32 next_resale_date_, int32 export_date_)
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

bool can_be_transferred_
 True, if the gift can be transferred to another owner.
int53 drop_original_details_star_count_
 Number of Telegram Stars that must be paid to drop original details of the upgraded gift; 0 if not available.
int32 export_date_
 Point in time (Unix timestamp) when the gift can be transferred to the TON blockchain as an NFT; can be in the past.
object_ptr< upgradedGift > gift_
 The upgraded gift.
bool is_saved_
 True, if the gift is displayed on the user's or the channel's profile page.
int32 next_resale_date_
 Point in time (Unix timestamp) when the gift can be resold to another user; can be in the past; 0 if the gift can't be resold; only for the receiver of the gift.
int32 next_transfer_date_
 Point in time (Unix timestamp) when the gift can be transferred to another owner; can be in the past; 0 if the gift can be transferred immediately or transfer isn't possible.
string received_gift_id_
 Unique identifier of the received gift for the current user.
int53 transfer_star_count_
 Number of Telegram Stars that must be paid to transfer the upgraded gift.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ upgradeGiftResult() [1/2]

upgradeGiftResult ( )

Contains result of gift upgrading.

◆ upgradeGiftResult() [2/2]

upgradeGiftResult ( object_ptr< upgradedGift > && gift_,
string const & received_gift_id_,
bool is_saved_,
bool can_be_transferred_,
int53 transfer_star_count_,
int53 drop_original_details_star_count_,
int32 next_transfer_date_,
int32 next_resale_date_,
int32 export_date_ )

Contains result of gift upgrading.

Parameters
[in]gift_The upgraded gift.
[in]received_gift_id_Unique identifier of the received gift for the current user.
[in]is_saved_True, if the gift is displayed on the user's or the channel's profile page.
[in]can_be_transferred_True, if the gift can be transferred to another owner.
[in]transfer_star_count_Number of Telegram Stars that must be paid to transfer the upgraded gift.
[in]drop_original_details_star_count_Number of Telegram Stars that must be paid to drop original details of the upgraded gift; 0 if not available.
[in]next_transfer_date_Point in time (Unix timestamp) when the gift can be transferred to another owner; can be in the past; 0 if the gift can be transferred immediately or transfer isn't possible.
[in]next_resale_date_Point in time (Unix timestamp) when the gift can be resold to another user; can be in the past; 0 if the gift can't be resold; only for the receiver of the gift.
[in]export_date_Point in time (Unix timestamp) when the gift can be transferred to the TON blockchain as an NFT; can be in the past.

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: