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::affiliateProgramInfo Class Referencefinal

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

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

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

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&#x27;t scheduled to be closed. If positive, then the program can&#x27;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.
 

Static Public Attributes

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

Detailed Description

Contains information about an active affiliate program.

Definition at line 823 of file td_api.h.

Constructor & Destructor Documentation

◆ affiliateProgramInfo() [1/2]

td::td_api::affiliateProgramInfo::affiliateProgramInfo ( )

Contains information about an active affiliate program.

◆ affiliateProgramInfo() [2/2]

td::td_api::affiliateProgramInfo::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&#x27;t scheduled to be closed. If positive, then the program can&#x27;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 td::td_api::affiliateProgramInfo::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

◆ daily_revenue_per_user_amount_

object_ptr<starAmount> td::td_api::affiliateProgramInfo::daily_revenue_per_user_amount_

The amount of daily revenue per user in Telegram Stars of the bot that created the affiliate program.

Definition at line 838 of file td_api.h.

◆ end_date_

int32 td::td_api::affiliateProgramInfo::end_date_

Point in time (Unix timestamp) when the affiliate program will be closed; 0 if the affiliate program isn&#x27;t scheduled to be closed. If positive, then the program can&#x27;t be connected using connectAffiliateProgram, but active connections will work until the date.

Definition at line 836 of file td_api.h.

◆ ID

const std::int32_t td::td_api::affiliateProgramInfo::ID = -1761810251
static

Identifier uniquely determining a type of the object.

Definition at line 855 of file td_api.h.

◆ parameters_

object_ptr<affiliateProgramParameters> td::td_api::affiliateProgramInfo::parameters_

Parameters of the affiliate program.

Definition at line 834 of file td_api.h.


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