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

Inherits Object.

Description

Describes a gift that is available for purchase.

Public Fields

object_ptr< giftgift_
 The gift.
 
int32 resale_count_
 Number of gifts that are available for resale.
 
int53 min_resale_star_count_
 The minimum price for the gifts available for resale; 0 if there are no such gifts.
 
string title_
 The title of the upgraded gift; empty if the gift isn't available for resale.
 

Public Instance Methods

 availableGift ()
 
 availableGift (object_ptr< gift > &&gift_, int32 resale_count_, int53 min_resale_star_count_, string const &title_)
 
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 = 850530502
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ availableGift() [1/2]

Describes a gift that is available for purchase.

◆ availableGift() [2/2]

availableGift ( object_ptr< gift > &&  gift_,
int32  resale_count_,
int53  min_resale_star_count_,
string const &  title_ 
)

Describes a gift that is available for purchase.

Parameters
[in]gift_The gift.
[in]resale_count_Number of gifts that are available for resale.
[in]min_resale_star_count_The minimum price for the gifts available for resale; 0 if there are no such gifts.
[in]title_The title of the upgraded gift; empty if the gift isn't available for resale.

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: