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

Inherits GiveawayInfo.

Description

Describes an ongoing giveaway.

Public Member Functions

 giveawayInfoOngoing ()
 giveawayInfoOngoing (int32 creation_date_, object_ptr< GiveawayParticipantStatus > &&status_, bool is_ended_)
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 creation_date_
 Point in time (Unix timestamp) when the giveaway was created.
bool is_ended_
 True, if the giveaway has ended and results are being prepared.
object_ptr< GiveawayParticipantStatus > status_
 Status of the current user in the giveaway.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ giveawayInfoOngoing() [1/2]

giveawayInfoOngoing ( )

Describes an ongoing giveaway.

◆ giveawayInfoOngoing() [2/2]

giveawayInfoOngoing ( int32 creation_date_,
object_ptr< GiveawayParticipantStatus > && status_,
bool is_ended_ )

Describes an ongoing giveaway.

Parameters
[in]creation_date_Point in time (Unix timestamp) when the giveaway was created.
[in]status_Status of the current user in the giveaway.
[in]is_ended_True, if the giveaway has ended and results are being prepared.

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: