tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::upgradedGiftModel Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::upgradedGiftModel:
td::td_api::Object td::TlObject

Public Member Functions

 upgradedGiftModel ()
 
 upgradedGiftModel (string const &name_, object_ptr< sticker > &&sticker_, object_ptr< UpgradedGiftAttributeRarity > &&rarity_, bool is_crafted_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::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
 

Public Attributes

string name_
 Name of the model.
 
object_ptr< stickersticker_
 The sticker representing the upgraded gift.
 
object_ptr< UpgradedGiftAttributeRarityrarity_
 The rarity of the model.
 
bool is_crafted_
 True, if the model can be obtained only through gift crafting.
 

Static Public Attributes

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

Detailed Description

Describes a model of an upgraded gift.

Definition at line 84129 of file td_api.h.

Constructor & Destructor Documentation

◆ upgradedGiftModel() [1/2]

td::td_api::upgradedGiftModel::upgradedGiftModel ( )

Describes a model of an upgraded gift.

◆ upgradedGiftModel() [2/2]

td::td_api::upgradedGiftModel::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 td::td_api::upgradedGiftModel::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 td::TlObject.

Member Data Documentation

◆ ID

const std::int32_t td::td_api::upgradedGiftModel::ID = -1451554959
static

Identifier uniquely determining a type of the object.

Definition at line 84164 of file td_api.h.

◆ is_crafted_

bool td::td_api::upgradedGiftModel::is_crafted_

True, if the model can be obtained only through gift crafting.

Definition at line 84146 of file td_api.h.

◆ name_

string td::td_api::upgradedGiftModel::name_

Name of the model.

Definition at line 84140 of file td_api.h.

◆ rarity_

object_ptr<UpgradedGiftAttributeRarity> td::td_api::upgradedGiftModel::rarity_

The rarity of the model.

Definition at line 84144 of file td_api.h.

◆ sticker_

object_ptr<sticker> td::td_api::upgradedGiftModel::sticker_

The sticker representing the upgraded gift.

Definition at line 84142 of file td_api.h.


The documentation for this class was generated from the following file: