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

Inherits Object.

Description

Contains information about an active affiliate program.

Public Fields

object_ptr< affiliateProgramParametersparameters_
 Parameters of the affiliate program.
 
int32 end_date_
 Point in time (Unix timestamp) when the affiliate program will be closed; 0 if the affiliate program isn't scheduled to be closed. If positive, then the program can't be connected using connectAffiliateProgram, but active connections will work until the date.
 
object_ptr< starAmountdaily_revenue_per_user_amount_
 The amount of daily revenue per user in Telegram Stars of the bot that created the affiliate program.
 

Public Instance Methods

 affiliateProgramInfo ()
 
 affiliateProgramInfo (object_ptr< affiliateProgramParameters > &&parameters_, int32 end_date_, object_ptr< starAmount > &&daily_revenue_per_user_amount_)
 
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 = -1761810251
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ affiliateProgramInfo() [1/2]

Contains information about an active affiliate program.

◆ affiliateProgramInfo() [2/2]

affiliateProgramInfo ( object_ptr< affiliateProgramParameters > &&  parameters_,
int32  end_date_,
object_ptr< starAmount > &&  daily_revenue_per_user_amount_ 
)

Contains information about an active affiliate program.

Parameters
[in]parameters_Parameters of the affiliate program.
[in]end_date_Point in time (Unix timestamp) when the affiliate program will be closed; 0 if the affiliate program isn't scheduled to be closed. If positive, then the program can't be connected using connectAffiliateProgram, but active connections will work until the date.
[in]daily_revenue_per_user_amount_The amount of daily revenue per user in Telegram Stars of the bot that created the affiliate program.

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: