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

Inherits Object.

Description

Represents a gift that was acquired by the current user on an auction.

Public Member Functions

 giftAuctionAcquiredGift ()
 giftAuctionAcquiredGift (object_ptr< MessageSender > &&receiver_id_, int32 date_, int53 star_count_, int32 auction_round_number_, int32 auction_round_position_, int32 unique_gift_number_, object_ptr< formattedText > &&text_, bool is_private_)
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 auction_round_number_
 Identifier of the auction round in which the gift was acquired.
int32 auction_round_position_
 Position of the user in the round among all auction participants.
int32 date_
 Point in time (Unix timestamp) when the gift was acquired.
bool is_private_
 True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them.
object_ptr< MessageSender > receiver_id_
 Receiver of the gift.
int53 star_count_
 The number of Telegram Stars that were paid for the gift.
object_ptr< formattedText > text_
 Message added to the gift.
int32 unique_gift_number_
 Unique number of the gift among gifts upgraded from the same gift after upgrade; 0 if yet unassigned.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ giftAuctionAcquiredGift() [1/2]

giftAuctionAcquiredGift ( )

Represents a gift that was acquired by the current user on an auction.

◆ giftAuctionAcquiredGift() [2/2]

giftAuctionAcquiredGift ( object_ptr< MessageSender > && receiver_id_,
int32 date_,
int53 star_count_,
int32 auction_round_number_,
int32 auction_round_position_,
int32 unique_gift_number_,
object_ptr< formattedText > && text_,
bool is_private_ )

Represents a gift that was acquired by the current user on an auction.

Parameters
[in]receiver_id_Receiver of the gift.
[in]date_Point in time (Unix timestamp) when the gift was acquired.
[in]star_count_The number of Telegram Stars that were paid for the gift.
[in]auction_round_number_Identifier of the auction round in which the gift was acquired.
[in]auction_round_position_Position of the user in the round among all auction participants.
[in]unique_gift_number_Unique number of the gift among gifts upgraded from the same gift after upgrade; 0 if yet unassigned.
[in]text_Message added to the gift.
[in]is_private_True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them.

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: