List of all members | Public Fields | Public Instance Methods | Static Public Attributes
upgradedGiftValueInfo Class Referencefinal

Inherits Object.

Description

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 &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_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Instance Methods inherited from TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ upgradedGiftValueInfo() [1/2]

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_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.

Method 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: