GiftAuctionAcquiredGift class final
Represents a gift that was acquired by the current user on an auction
Constructors
- GiftAuctionAcquiredGift({required MessageSender receiverId, required int date, required int starCount, required int auctionRoundNumber, required int auctionRoundPosition, required int uniqueGiftNumber, required FormattedText text, required bool isPrivate})
-
Represents a gift that was acquired by the current user on an auction
const
-
GiftAuctionAcquiredGift.fromJson(Map<
String, dynamic> json) -
Parses a GiftAuctionAcquiredGift from TDLib JSON.
factory
Properties
- auctionRoundNumber → int
-
Identifier of the auction round in which the gift was acquired
final
- auctionRoundPosition → int
-
Position of the user in the round among all auction participants
final
- clientId → int?
-
Identifier of the TDLib client that sent this object, when known.
no setterinherited
- date → int
-
Point in time (Unix timestamp) when the gift was acquired
final
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isPrivate → bool
-
True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them
final
- receiverId → MessageSender
-
Receiver of the gift
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- starCount → int
-
The number of Telegram Stars that were paid for the gift
final
- text → FormattedText
-
Message added to the gift
final
- uniqueGiftNumber → int
-
Unique number of the gift among gifts upgraded from the same gift after upgrade; 0 if yet unassigned
final
Methods
-
copyWith(
{MessageSender? receiverId, int? date, int? starCount, int? auctionRoundNumber, int? auctionRoundPosition, int? uniqueGiftNumber, FormattedText? text, bool? isPrivate}) → GiftAuctionAcquiredGift -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto 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.