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

Inherits Object.

Description

Contains information about an active affiliate program.

Public Member Functions

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

object_ptr< starAmount > daily_revenue_per_user_amount_
 The amount of daily revenue per user in Telegram Stars of the bot that created 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< affiliateProgramParameters > parameters_
 Parameters of the affiliate program.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ affiliateProgramInfo() [1/2]

affiliateProgramInfo ( )

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.

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: