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

Inherits Object.

Description

Describes a model of an upgraded gift.

Public Member Functions

void store (TlStorerToString &s, const char *field_name) const final
 upgradedGiftModel ()
 upgradedGiftModel (string const &name_, object_ptr< sticker > &&sticker_, object_ptr< UpgradedGiftAttributeRarity > &&rarity_, bool is_crafted_)
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 is_crafted_
 True, if the model can be obtained only through gift crafting.
string name_
 Name of the model.
object_ptr< UpgradedGiftAttributeRarity > rarity_
 The rarity of the model.
object_ptr< sticker > sticker_
 The sticker representing the upgraded gift.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ upgradedGiftModel() [1/2]

upgradedGiftModel ( )

Describes a model of an upgraded gift.

◆ upgradedGiftModel() [2/2]

upgradedGiftModel ( string const & name_,
object_ptr< sticker > && sticker_,
object_ptr< UpgradedGiftAttributeRarity > && rarity_,
bool is_crafted_ )

Describes a model of an upgraded gift.

Parameters
[in]name_Name of the model.
[in]sticker_The sticker representing the upgraded gift.
[in]rarity_The rarity of the model.
[in]is_crafted_True, if the model can be obtained only through gift crafting.

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: