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

Inherits Object.

Description

Describes gift types that are accepted by a user.

Public Fields

bool unlimited_gifts_
 True, if unlimited regular gifts are accepted.
 
bool limited_gifts_
 True, if limited regular gifts are accepted.
 
bool upgraded_gifts_
 True, if upgraded gifts and regular gifts that can be upgraded for free are accepted.
 
bool premium_subscription_
 True, if Telegram Premium subscription is accepted.
 

Public Instance Methods

 acceptedGiftTypes ()
 
 acceptedGiftTypes (bool unlimited_gifts_, bool limited_gifts_, bool upgraded_gifts_, bool premium_subscription_)
 
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 = 1783521300
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ acceptedGiftTypes() [1/2]

Describes gift types that are accepted by a user.

◆ acceptedGiftTypes() [2/2]

acceptedGiftTypes ( bool  unlimited_gifts_,
bool  limited_gifts_,
bool  upgraded_gifts_,
bool  premium_subscription_ 
)

Describes gift types that are accepted by a user.

Parameters
[in]unlimited_gifts_True, if unlimited regular gifts are accepted.
[in]limited_gifts_True, if limited regular gifts are accepted.
[in]upgraded_gifts_True, if upgraded gifts and regular gifts that can be upgraded for free are accepted.
[in]premium_subscription_True, if Telegram Premium subscription is accepted.

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: