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

Inherits Object.

Description

Describes parameters of an affiliate program.

Public Member Functions

 affiliateProgramParameters ()
 affiliateProgramParameters (int32 commission_per_mille_, int32 month_count_)
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

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.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ affiliateProgramParameters() [1/2]

affiliateProgramParameters ( )

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.

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: