UpgradeGiftResult class final

Contains result of gift upgrading

Inheritance

Constructors

UpgradeGiftResult({required UpgradedGift gift, required String receivedGiftId, required bool isSaved, required bool canBeTransferred, required int transferStarCount, required int dropOriginalDetailsStarCount, required int nextTransferDate, required int nextResaleDate, required int exportDate, dynamic extra, int? clientId})
Contains result of gift upgrading
const
UpgradeGiftResult.fromJson(Map<String, dynamic> json)
Parses a UpgradeGiftResult from TDLib JSON.
factory

Properties

canBeTransferred → bool
True, if the gift can be transferred to another owner
final
clientId → int?
Identifier of the TDLib client that sent this object.
final
dropOriginalDetailsStarCount → int
Number of Telegram Stars that must be paid to drop original details of the upgraded gift; 0 if not available
final
exportDate → int
Point in time (Unix timestamp) when the gift can be transferred to the TON blockchain as an NFT; can be in the past
final
extra → dynamic
"@extra" of the request this object answers.
final
gift → UpgradedGift
The upgraded gift
final
hashCode → int
The hash code for this object.
no setterinherited
isSaved → bool
True, if the gift is displayed on the user's or the channel's profile page
final
nextResaleDate → int
Point in time (Unix timestamp) when the gift can be resold to another user; can be in the past; 0 if the gift can't be resold; only for the receiver of the gift
final
nextTransferDate → int
Point in time (Unix timestamp) when the gift can be transferred to another owner; can be in the past; 0 if the gift can be transferred immediately or transfer isn't possible
final
receivedGiftId → String
Unique identifier of the received gift for the current user
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transferStarCount → int
Number of Telegram Stars that must be paid to transfer the upgraded gift
final

Methods

copyWith({UpgradedGift? gift, String? receivedGiftId, bool? isSaved, bool? canBeTransferred, int? transferStarCount, int? dropOriginalDetailsStarCount, int? nextTransferDate, int? nextResaleDate, int? exportDate, dynamic extra, int? clientId}) → UpgradeGiftResult
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.