Inherits Object.
Contains information about value of an upgraded gift.
Public Fields | |
string | currency_ |
ISO 4217 currency code of the currency in which the prices are represented. | |
int53 | value_ |
Estimated value of the gift; in the smallest units of the currency. | |
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 | initial_sale_date_ |
Point in time (Unix timestamp) when the corresponding regular gift was originally purchased. | |
int53 | initial_sale_star_count_ |
Amount of Telegram Stars that were paid for the gift. | |
int53 | initial_sale_price_ |
Initial price of the gift; in the smallest units of the currency. | |
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. | |
bool | is_last_sale_on_fragment_ |
True, if the last sale was completed on Fragment. | |
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. | |
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. | |
int32 | telegram_listed_gift_count_ |
Number of gifts upgraded from the same gift being resold on Telegram. | |
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. | |
Public Instance Methods | |
upgradedGiftValueInfo () | |
upgradedGiftValueInfo (string const ¤cy_, 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_) | |
void | store (TlStorerToString &s, const char *field_name) const final |
![]() | |
virtual void | store (TlStorerUnsafe &s) const |
virtual void | store (TlStorerCalcLength &s) const |
TlObject ()=default | |
TlObject (const TlObject &)=delete | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Static Public Attributes | |
static const std::int32_t | ID = -1729877677 |
Identifier uniquely determining a type of the object. | |
Contains information about value of an upgraded gift.
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.
[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_ | Amount of Telegram Stars that were 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. |
|
finalvirtual |