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

Inherits Object.

Description

Contains information about value of an upgraded gift.

Public Member Functions

void store (TlStorerToString &s, const char *field_name) const final
 upgradedGiftValueInfo ()
 upgradedGiftValueInfo (string const &currency_, int53 value_, bool is_value_average_, int32 initial_sale_date_, int53 initial_sale_star_count_, int53 initial_sale_price_, int32 last_sale_date_, int53 last_sale_price_, bool is_last_sale_on_fragment_, int53 minimum_price_, int53 average_sale_price_, int32 telegram_listed_gift_count_, int32 fragment_listed_gift_count_, string const &fragment_url_)
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

int53 average_sale_price_
 The average sale price in the last month of gifts upgraded from the same gift; in the smallest units of the currency; 0 if there were no such sales.
string currency_
 ISO 4217 currency code of the currency in which the prices are represented.
int32 fragment_listed_gift_count_
 Number of gifts upgraded from the same gift being resold on Fragment.
string fragment_url_
 The HTTPS link to the Fragment for the gift; may be empty if there are no such gifts being sold on Fragment.
int32 initial_sale_date_
 Point in time (Unix timestamp) when the corresponding regular gift was originally purchased.
int53 initial_sale_price_
 Initial price of the gift; in the smallest units of the currency.
int53 initial_sale_star_count_
 The Telegram Star amount that was paid for the gift.
bool is_last_sale_on_fragment_
 True, if the last sale was completed on Fragment.
bool is_value_average_
 True, if the value is calculated as average value of similar sold gifts. Otherwise, it is based on the sale price of the gift.
int32 last_sale_date_
 Point in time (Unix timestamp) when the upgraded gift was purchased last time; 0 if never.
int53 last_sale_price_
 Last purchase price of the gift; in the smallest units of the currency; 0 if the gift has never been resold.
int53 minimum_price_
 The current minimum price of gifts upgraded from the same gift; in the smallest units of the currency; 0 if there are no such gifts.
int32 telegram_listed_gift_count_
 Number of gifts upgraded from the same gift being resold on Telegram.
int53 value_
 Estimated value of the gift; in the smallest units of the currency.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ upgradedGiftValueInfo() [1/2]

upgradedGiftValueInfo ( )

Contains information about value of an upgraded gift.

◆ upgradedGiftValueInfo() [2/2]

upgradedGiftValueInfo ( string const & currency_,
int53 value_,
bool is_value_average_,
int32 initial_sale_date_,
int53 initial_sale_star_count_,
int53 initial_sale_price_,
int32 last_sale_date_,
int53 last_sale_price_,
bool is_last_sale_on_fragment_,
int53 minimum_price_,
int53 average_sale_price_,
int32 telegram_listed_gift_count_,
int32 fragment_listed_gift_count_,
string const & fragment_url_ )

Contains information about value of an upgraded gift.

Parameters
[in]currency_ISO 4217 currency code of the currency in which the prices are represented.
[in]value_Estimated value of the gift; in the smallest units of the currency.
[in]is_value_average_True, if the value is calculated as average value of similar sold gifts. Otherwise, it is based on the sale price of the gift.
[in]initial_sale_date_Point in time (Unix timestamp) when the corresponding regular gift was originally purchased.
[in]initial_sale_star_count_The Telegram Star amount that was paid for the gift.
[in]initial_sale_price_Initial price of the gift; in the smallest units of the currency.
[in]last_sale_date_Point in time (Unix timestamp) when the upgraded gift was purchased last time; 0 if never.
[in]last_sale_price_Last purchase price of the gift; in the smallest units of the currency; 0 if the gift has never been resold.
[in]is_last_sale_on_fragment_True, if the last sale was completed on Fragment.
[in]minimum_price_The current minimum price of gifts upgraded from the same gift; in the smallest units of the currency; 0 if there are no such gifts.
[in]average_sale_price_The average sale price in the last month of gifts upgraded from the same gift; in the smallest units of the currency; 0 if there were no such sales.
[in]telegram_listed_gift_count_Number of gifts upgraded from the same gift being resold on Telegram.
[in]fragment_listed_gift_count_Number of gifts upgraded from the same gift being resold on Fragment.
[in]fragment_url_The HTTPS link to the Fragment for the gift; may be empty if there are no such gifts being sold on Fragment.

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: