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

Inherits Object.

Description

Describes a slot for chat boost.

Public Member Functions

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

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

Static Public Attributes

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

Constructor & Destructor Documentation

◆ chatBoostSlot() [1/2]

chatBoostSlot ( )

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.

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: