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

Inherits Object.

Description

Describes an upgraded gift that can be transferred to another owner or transferred to the TON blockchain as an NFT.

Public Fields

int64 id_
 Unique identifier of the gift.
 
string title_
 The title of the upgraded gift.
 
string name_
 Unique name of the upgraded gift that can be used with internalLinkTypeUpgradedGift.
 
int32 number_
 Unique number of the upgraded gift among gifts upgraded from the same gift.
 
int32 total_upgraded_count_
 Total number of gifts that were upgraded from the same gift.
 
int32 max_upgraded_count_
 The maximum number of gifts that can be upgraded from the same gift.
 
object_ptr< MessageSenderowner_id_
 Identifier of the user or the chat that owns the upgraded gift; may be null if none or unknown.
 
string owner_address_
 Address of the gift NFT owner in TON blockchain; may be empty if none.
 
string owner_name_
 Name of the owner for the case when owner identifier and address aren't known.
 
string gift_address_
 Address of the gift NFT in TON blockchain; may be empty if none.
 
object_ptr< upgradedGiftModelmodel_
 Model of the upgraded gift.
 
object_ptr< upgradedGiftSymbolsymbol_
 Symbol of the upgraded gift.
 
object_ptr< upgradedGiftBackdropbackdrop_
 Backdrop of the upgraded gift.
 
object_ptr< upgradedGiftOriginalDetailsoriginal_details_
 Information about the originally sent gift; may be null if unknown.
 

Public Instance Methods

 upgradedGift ()
 
 upgradedGift (int64 id_, string const &title_, string const &name_, int32 number_, int32 total_upgraded_count_, int32 max_upgraded_count_, object_ptr< MessageSender > &&owner_id_, string const &owner_address_, string const &owner_name_, string const &gift_address_, object_ptr< upgradedGiftModel > &&model_, object_ptr< upgradedGiftSymbol > &&symbol_, object_ptr< upgradedGiftBackdrop > &&backdrop_, object_ptr< upgradedGiftOriginalDetails > &&original_details_)
 
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 = -473646818
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ upgradedGift() [1/2]

Describes an upgraded gift that can be transferred to another owner or transferred to the TON blockchain as an NFT.

◆ upgradedGift() [2/2]

upgradedGift ( int64  id_,
string const &  title_,
string const &  name_,
int32  number_,
int32  total_upgraded_count_,
int32  max_upgraded_count_,
object_ptr< MessageSender > &&  owner_id_,
string const &  owner_address_,
string const &  owner_name_,
string const &  gift_address_,
object_ptr< upgradedGiftModel > &&  model_,
object_ptr< upgradedGiftSymbol > &&  symbol_,
object_ptr< upgradedGiftBackdrop > &&  backdrop_,
object_ptr< upgradedGiftOriginalDetails > &&  original_details_ 
)

Describes an upgraded gift that can be transferred to another owner or transferred to the TON blockchain as an NFT.

Parameters
[in]id_Unique identifier of the gift.
[in]title_The title of the upgraded gift.
[in]name_Unique name of the upgraded gift that can be used with internalLinkTypeUpgradedGift.
[in]number_Unique number of the upgraded gift among gifts upgraded from the same gift.
[in]total_upgraded_count_Total number of gifts that were upgraded from the same gift.
[in]max_upgraded_count_The maximum number of gifts that can be upgraded from the same gift.
[in]owner_id_Identifier of the user or the chat that owns the upgraded gift; may be null if none or unknown.
[in]owner_address_Address of the gift NFT owner in TON blockchain; may be empty if none.
[in]owner_name_Name of the owner for the case when owner identifier and address aren't known.
[in]gift_address_Address of the gift NFT in TON blockchain; may be empty if none.
[in]model_Model of the upgraded gift.
[in]symbol_Symbol of the upgraded gift.
[in]backdrop_Backdrop of the upgraded gift.
[in]original_details_Information about the originally sent gift; may be null if unknown.

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: