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

Inherits Object.

Description

Describes an option for the number of winners of a Telegram Star giveaway.

Public Member Functions

 starGiveawayWinnerOption ()
 starGiveawayWinnerOption (int32 winner_count_, int53 won_star_count_, bool is_default_)
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

bool is_default_
 True, if the option must be chosen by default.
int32 winner_count_
 The number of users that will be chosen as winners.
int53 won_star_count_
 The number of Telegram Stars that will be won by the winners of the giveaway.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ starGiveawayWinnerOption() [1/2]

starGiveawayWinnerOption ( )

Describes an option for the number of winners of a Telegram Star giveaway.

◆ starGiveawayWinnerOption() [2/2]

starGiveawayWinnerOption ( int32 winner_count_,
int53 won_star_count_,
bool is_default_ )

Describes an option for the number of winners of a Telegram Star giveaway.

Parameters
[in]winner_count_The number of users that will be chosen as winners.
[in]won_star_count_The number of Telegram Stars that will be won by the winners of the giveaway.
[in]is_default_True, if the option must be chosen by default.

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: