UserAuctionBid class final

Describes a bid of the current user in an auction

Inheritance

Constructors

UserAuctionBid({required int starCount, required int bidDate, required int nextBidStarCount, required MessageSender ownerId, required bool wasReturned})
Describes a bid of the current user in an auction
const
UserAuctionBid.fromJson(Map<String, dynamic> json)
Parses a UserAuctionBid from TDLib JSON.
factory

Properties

bidDate → int
Point in time (Unix timestamp) when the bid was made
final
clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
nextBidStarCount → int
The minimum number of Telegram Stars that can be put for the next bid
final
ownerId → MessageSender
Identifier of the user or the chat that will receive the auctioned item. If the auction is opened in context of another user or chat, then a warning is supposed to be shown to the current user
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
starCount → int
The number of Telegram Stars that were put in the bid
final
wasReturned → bool
True, if the bid was returned to the user, because it was outbid and can't win anymore
final

Methods

copyWith({int? starCount, int? bidDate, int? nextBidStarCount, MessageSender? ownerId, bool? wasReturned}) → UserAuctionBid
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.