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

Inherits Object.

Description

Describes a gift that is available for purchase.

Public Member Functions

 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 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

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

Static Public Attributes

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

Constructor & Destructor Documentation

◆ availableGift() [1/2]

availableGift ( )

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 in Telegram Star equivalent; 0 if there are no such gifts.
[in]title_The title of the upgraded gift; empty if the gift isn't available for resale.

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: