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

Inherits Object.

Description

Describes a slot for chat boost.

Public Fields

int32 slot_id_
 Unique identifier of the slot.
 
int53 currently_boosted_chat_id_
 Identifier of the currently boosted chat; 0 if none.
 
int32 start_date_
 Point in time (Unix timestamp) when the chat was boosted; 0 if none.
 
int32 expiration_date_
 Point in time (Unix timestamp) when the boost will expire.
 
int32 cooldown_until_date_
 Point in time (Unix timestamp) after which the boost can be used for another chat.
 

Public Instance Methods

 chatBoostSlot ()
 
 chatBoostSlot (int32 slot_id_, int53 currently_boosted_chat_id_, int32 start_date_, int32 expiration_date_, int32 cooldown_until_date_)
 
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 = 123206343
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ chatBoostSlot() [1/2]

Describes a slot for chat boost.

◆ chatBoostSlot() [2/2]

chatBoostSlot ( int32  slot_id_,
int53  currently_boosted_chat_id_,
int32  start_date_,
int32  expiration_date_,
int32  cooldown_until_date_ 
)

Describes a slot for chat boost.

Parameters
[in]slot_id_Unique identifier of the slot.
[in]currently_boosted_chat_id_Identifier of the currently boosted chat; 0 if none.
[in]start_date_Point in time (Unix timestamp) when the chat was boosted; 0 if none.
[in]expiration_date_Point in time (Unix timestamp) when the boost will expire.
[in]cooldown_until_date_Point in time (Unix timestamp) after which the boost can be used for another chat.

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: