tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::affiliateProgramParameters Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::affiliateProgramParameters:
td::td_api::Object td::TlObject

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 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

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.
 

Detailed Description

Describes parameters of an affiliate program.

Definition at line 868 of file td_api.h.

Constructor & Destructor Documentation

◆ affiliateProgramParameters() [1/2]

td::td_api::affiliateProgramParameters::affiliateProgramParameters ( )

Describes parameters of an affiliate program.

◆ affiliateProgramParameters() [2/2]

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

Member Data Documentation

◆ commission_per_mille_

int32 td::td_api::affiliateProgramParameters::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").

Definition at line 879 of file td_api.h.

◆ ID

const std::int32_t td::td_api::affiliateProgramParameters::ID = 1642662996
static

Identifier uniquely determining a type of the object.

Definition at line 897 of file td_api.h.

◆ month_count_

int32 td::td_api::affiliateProgramParameters::month_count_

Number of months the program will be active; 0-36. If 0, then the program is eternal.

Definition at line 881 of file td_api.h.


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