Package org.drinkless.tdlib
Class TdApi.UpgradedGiftValueInfo
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.UpgradedGiftValueInfo
- Enclosing class:
- TdApi
Contains information about value of an upgraded gift.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongThe 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.static final intIdentifier uniquely determining type of the object.ISO 4217 currency code of the currency in which the prices are represented.intNumber of gifts upgraded from the same gift being resold on Fragment.The HTTPS link to the Fragment for the gift; may be empty if there are no such gifts being sold on Fragment.intPoint in time (Unix timestamp) when the corresponding regular gift was originally purchased.longInitial price of the gift; in the smallest units of the currency.longAmount of Telegram Stars that were paid for the gift.booleanTrue, if the last sale was completed on Fragment.booleanTrue, if the value is calculated as average value of similar sold gifts.intPoint in time (Unix timestamp) when the upgraded gift was purchased last time; 0 if never.longLast purchase price of the gift; in the smallest units of the currency; 0 if the gift has never been resold.longThe current minimum price of gifts upgraded from the same gift; in the smallest units of the currency; 0 if there are no such gifts.intNumber of gifts upgraded from the same gift being resold on Telegram.longEstimated value of the gift; in the smallest units of the currency. -
Constructor Summary
ConstructorsConstructorDescriptionContains information about value of an upgraded gift.UpgradedGiftValueInfo(String currency, long value, boolean isValueAverage, int initialSaleDate, long initialSaleStarCount, long initialSalePrice, int lastSaleDate, long lastSalePrice, boolean isLastSaleOnFragment, long minimumPrice, long averageSalePrice, int telegramListedGiftCount, int fragmentListedGiftCount, String fragmentUrl) Contains information about value of an upgraded gift. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
currency
ISO 4217 currency code of the currency in which the prices are represented. -
value
public long valueEstimated value of the gift; in the smallest units of the currency. -
isValueAverage
public boolean isValueAverageTrue, if the value is calculated as average value of similar sold gifts. Otherwise, it is based on the sale price of the gift. -
initialSaleDate
public int initialSaleDatePoint in time (Unix timestamp) when the corresponding regular gift was originally purchased. -
initialSaleStarCount
public long initialSaleStarCountAmount of Telegram Stars that were paid for the gift. -
initialSalePrice
public long initialSalePriceInitial price of the gift; in the smallest units of the currency. -
lastSaleDate
public int lastSaleDatePoint in time (Unix timestamp) when the upgraded gift was purchased last time; 0 if never. -
lastSalePrice
public long lastSalePriceLast purchase price of the gift; in the smallest units of the currency; 0 if the gift has never been resold. -
isLastSaleOnFragment
public boolean isLastSaleOnFragmentTrue, if the last sale was completed on Fragment. -
minimumPrice
public long minimumPriceThe current minimum price of gifts upgraded from the same gift; in the smallest units of the currency; 0 if there are no such gifts. -
averageSalePrice
public long averageSalePriceThe 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. -
telegramListedGiftCount
public int telegramListedGiftCountNumber of gifts upgraded from the same gift being resold on Telegram. -
fragmentListedGiftCount
public int fragmentListedGiftCountNumber of gifts upgraded from the same gift being resold on Fragment. -
fragmentUrl
The HTTPS link to the Fragment for the gift; may be empty if there are no such gifts being sold on Fragment. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
UpgradedGiftValueInfo
public UpgradedGiftValueInfo()Contains information about value of an upgraded gift. -
UpgradedGiftValueInfo
public UpgradedGiftValueInfo(String currency, long value, boolean isValueAverage, int initialSaleDate, long initialSaleStarCount, long initialSalePrice, int lastSaleDate, long lastSalePrice, boolean isLastSaleOnFragment, long minimumPrice, long averageSalePrice, int telegramListedGiftCount, int fragmentListedGiftCount, String fragmentUrl) Contains information about value of an upgraded gift.- Parameters:
currency- ISO 4217 currency code of the currency in which the prices are represented.value- Estimated value of the gift; in the smallest units of the currency.isValueAverage- True, if the value is calculated as average value of similar sold gifts. Otherwise, it is based on the sale price of the gift.initialSaleDate- Point in time (Unix timestamp) when the corresponding regular gift was originally purchased.initialSaleStarCount- Amount of Telegram Stars that were paid for the gift.initialSalePrice- Initial price of the gift; in the smallest units of the currency.lastSaleDate- Point in time (Unix timestamp) when the upgraded gift was purchased last time; 0 if never.lastSalePrice- Last purchase price of the gift; in the smallest units of the currency; 0 if the gift has never been resold.isLastSaleOnFragment- True, if the last sale was completed on Fragment.minimumPrice- 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.averageSalePrice- 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.telegramListedGiftCount- Number of gifts upgraded from the same gift being resold on Telegram.fragmentListedGiftCount- Number of gifts upgraded from the same gift being resold on Fragment.fragmentUrl- The HTTPS link to the Fragment for the gift; may be empty if there are no such gifts being sold on Fragment.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-