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

Inherits MessageContent.

Description

An offer to purchase a gift was rejected or expired.

Public Member Functions

 messageUpgradedGiftPurchaseOfferRejected ()
 messageUpgradedGiftPurchaseOfferRejected (object_ptr< upgradedGift > &&gift_, object_ptr< GiftResalePrice > &&price_, int53 offer_message_id_, bool was_expired_)
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

object_ptr< upgradedGift > gift_
 The gift.
int53 offer_message_id_
 Identifier of the message with purchase offer which was rejected or expired; may be 0 or an identifier of a deleted message.
object_ptr< GiftResalePrice > price_
 The proposed price.
bool was_expired_
 True, if the offer has expired; otherwise, the offer was explicitly rejected.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ messageUpgradedGiftPurchaseOfferRejected() [1/2]

messageUpgradedGiftPurchaseOfferRejected ( )

An offer to purchase a gift was rejected or expired.

◆ messageUpgradedGiftPurchaseOfferRejected() [2/2]

messageUpgradedGiftPurchaseOfferRejected ( object_ptr< upgradedGift > && gift_,
object_ptr< GiftResalePrice > && price_,
int53 offer_message_id_,
bool was_expired_ )

An offer to purchase a gift was rejected or expired.

Parameters
[in]gift_The gift.
[in]price_The proposed price.
[in]offer_message_id_Identifier of the message with purchase offer which was rejected or expired; may be 0 or an identifier of a deleted message.
[in]was_expired_True, if the offer has expired; otherwise, the offer was explicitly rejected.

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: