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

Inherits Object.

Description

Describes parameters of an affiliate program.

Public Fields

int32 commission_per_mille_
 The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the program owner; getOption("affiliate_program_commission_per_mille_min")-getOption("affiliate_program_commission_per_mille_max").
 
int32 month_count_
 Number of months the program will be active; 0-36. If 0, then the program is eternal.
 

Public Instance Methods

 affiliateProgramParameters ()
 
 affiliateProgramParameters (int32 commission_per_mille_, int32 month_count_)
 
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 = 1642662996
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ affiliateProgramParameters() [1/2]

Describes parameters of an affiliate program.

◆ affiliateProgramParameters() [2/2]

affiliateProgramParameters ( int32  commission_per_mille_,
int32  month_count_ 
)

Describes parameters of an affiliate program.

Parameters
[in]commission_per_mille_The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the program owner; getOption("affiliate_program_commission_per_mille_min")-getOption("affiliate_program_commission_per_mille_max").
[in]month_count_Number of months the program will be active; 0-36. If 0, then the program is eternal.

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: