UpgradedGiftValueInfo class final

Contains information about value of an upgraded gift

Inheritance

Constructors

UpgradedGiftValueInfo({required String currency, required int value, required bool isValueAverage, required int initialSaleDate, required int initialSaleStarCount, required int initialSalePrice, required int lastSaleDate, required int lastSalePrice, required bool isLastSaleOnFragment, required int minimumPrice, required int averageSalePrice, required int telegramListedGiftCount, required int fragmentListedGiftCount, required String fragmentUrl, dynamic extra, int? clientId})
Contains information about value of an upgraded gift
const
UpgradedGiftValueInfo.fromJson(Map<String, dynamic> json)
Parses a UpgradedGiftValueInfo from TDLib JSON.
factory

Properties

averageSalePrice → int
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
final
clientId → int?
Identifier of the TDLib client that sent this object.
final
currency → String
ISO 4217 currency code of the currency in which the prices are represented
final
extra → dynamic
"@extra" of the request this object answers.
final
fragmentListedGiftCount → int
Number of gifts upgraded from the same gift being resold on Fragment
final
fragmentUrl → String
The HTTPS link to the Fragment for the gift; may be empty if there are no such gifts being sold on Fragment
final
hashCode → int
The hash code for this object.
no setterinherited
initialSaleDate → int
Point in time (Unix timestamp) when the corresponding regular gift was originally purchased
final
initialSalePrice → int
Initial price of the gift; in the smallest units of the currency
final
initialSaleStarCount → int
The Telegram Star amount that was paid for the gift
final
isLastSaleOnFragment → bool
True, if the last sale was completed on Fragment
final
isValueAverage → bool
True, if the value is calculated as average value of similar sold gifts. Otherwise, it is based on the sale price of the gift
final
lastSaleDate → int
Point in time (Unix timestamp) when the upgraded gift was purchased last time; 0 if never
final
lastSalePrice → int
Last purchase price of the gift; in the smallest units of the currency; 0 if the gift has never been resold
final
minimumPrice → int
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
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
telegramListedGiftCount → int
Number of gifts upgraded from the same gift being resold on Telegram
final
value → int
Estimated value of the gift; in the smallest units of the currency
final

Methods

copyWith({String? currency, int? value, bool? isValueAverage, int? initialSaleDate, int? initialSaleStarCount, int? initialSalePrice, int? lastSaleDate, int? lastSalePrice, bool? isLastSaleOnFragment, int? minimumPrice, int? averageSalePrice, int? telegramListedGiftCount, int? fragmentListedGiftCount, String? fragmentUrl, dynamic extra, int? clientId}) → UpgradedGiftValueInfo
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

CONSTRUCTOR → const String
TDLib type name.