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

Inherits Object.

Description

Describes an affiliate program that was connected to an affiliate.

Public Fields

string url_
 The link that can be used to refer users if the program is still active.
 
int53 bot_user_id_
 User identifier of the bot created the program.
 
object_ptr< affiliateProgramParametersparameters_
 The parameters of the affiliate program.
 
int32 connection_date_
 Point in time (Unix timestamp) when the affiliate program was connected.
 
bool is_disconnected_
 True, if the program was canceled by the bot, or disconnected by the chat owner and isn't available anymore.
 
int64 user_count_
 The number of users that used the affiliate program.
 
int64 revenue_star_count_
 The number of Telegram Stars that were earned by the affiliate program.
 

Public Instance Methods

 connectedAffiliateProgram ()
 
 connectedAffiliateProgram (string const &url_, int53 bot_user_id_, object_ptr< affiliateProgramParameters > &&parameters_, int32 connection_date_, bool is_disconnected_, int64 user_count_, int64 revenue_star_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 = 1488942101
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ connectedAffiliateProgram() [1/2]

Describes an affiliate program that was connected to an affiliate.

◆ connectedAffiliateProgram() [2/2]

connectedAffiliateProgram ( string const &  url_,
int53  bot_user_id_,
object_ptr< affiliateProgramParameters > &&  parameters_,
int32  connection_date_,
bool  is_disconnected_,
int64  user_count_,
int64  revenue_star_count_ 
)

Describes an affiliate program that was connected to an affiliate.

Parameters
[in]url_The link that can be used to refer users if the program is still active.
[in]bot_user_id_User identifier of the bot created the program.
[in]parameters_The parameters of the affiliate program.
[in]connection_date_Point in time (Unix timestamp) when the affiliate program was connected.
[in]is_disconnected_True, if the program was canceled by the bot, or disconnected by the chat owner and isn't available anymore.
[in]user_count_The number of users that used the affiliate program.
[in]revenue_star_count_The number of Telegram Stars that were earned by the affiliate program.

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: