TDLib
Loading...
Searching...
No Matches
td::td_api::premiumStatePaymentOption Class Referencefinal

Inherits td::td_api::Object.

Public Member Functions

 premiumStatePaymentOption ()
 
 premiumStatePaymentOption (object_ptr< premiumPaymentOption > &&payment_option_, bool is_current_, bool is_upgrade_, string const &last_transaction_id_)
 
std::int32_t get_id () const final
 
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

object_ptr< premiumPaymentOptionpayment_option_
 Information about the payment option.
 
bool is_current_
 True, if this is the currently used Telegram Premium subscription option.
 
bool is_upgrade_
 True, if the payment option can be used to upgrade the existing Telegram Premium subscription.
 
string last_transaction_id_
 Identifier of the last in-store transaction for the currently used option.
 

Static Public Attributes

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

Detailed Description

Describes an option for buying or upgrading Telegram Premium for self.

Constructor & Destructor Documentation

◆ premiumStatePaymentOption() [1/2]

td::td_api::premiumStatePaymentOption::premiumStatePaymentOption ( )

Describes an option for buying or upgrading Telegram Premium for self.

◆ premiumStatePaymentOption() [2/2]

td::td_api::premiumStatePaymentOption::premiumStatePaymentOption ( object_ptr< premiumPaymentOption > &&  payment_option_,
bool  is_current_,
bool  is_upgrade_,
string const &  last_transaction_id_ 
)

Describes an option for buying or upgrading Telegram Premium for self.

Parameters
[in]payment_option_Information about the payment option.
[in]is_current_True, if this is the currently used Telegram Premium subscription option.
[in]is_upgrade_True, if the payment option can be used to upgrade the existing Telegram Premium subscription.
[in]last_transaction_id_Identifier of the last in-store transaction for the currently used option.

Member Function Documentation

◆ get_id()

std::int32_t td::td_api::premiumStatePaymentOption::get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

void td::td_api::premiumStatePaymentOption::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.


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