AuctionStateActive class final

Contains information about an ongoing or scheduled auction

Inheritance

Constructors

AuctionStateActive({required int startDate, required int endDate, required int minBid, required List<AuctionBid> bidLevels, required List<int> topBidderUserIds, required List<AuctionRound> rounds, required int currentRoundEndDate, required int currentRoundNumber, required int totalRoundCount, required int distributedItemCount, required int leftItemCount, required int acquiredItemCount, UserAuctionBid? userBid})
Contains information about an ongoing or scheduled auction
const
AuctionStateActive.fromJson(Map<String, dynamic> json)
Parses a AuctionStateActive from TDLib JSON.
factory

Properties

acquiredItemCount → int
The number of items that were purchased by the current user on the auction
final
bidLevels → List<AuctionBid>
A sparse list of bids that were made in the auction
final
clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
currentRoundEndDate → int
Point in time (Unix timestamp) when the current round will end
final
currentRoundNumber → int
1-based number of the current round
final
distributedItemCount → int
The number of items that were purchased on the auction by all users
final
endDate → int
Point in time (Unix timestamp) when the auction will be ended
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
leftItemCount → int
The number of items that have to be distributed on the auction
final
minBid → int
The minimum possible bid in the auction in Telegram Stars
final
rounds → List<AuctionRound>
Rounds of the auction in which their duration or extension rules are changed
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startDate → int
Point in time (Unix timestamp) when the auction started or will start
final
topBidderUserIds → List<int>
User identifiers of at most 3 users with the biggest bids
final
totalRoundCount → int
The total number of rounds
final
userBid → UserAuctionBid?
Bid of the current user in the auction; may be null if none
final

Methods

copyWith({int? startDate, int? endDate, int? minBid, List<AuctionBid>? bidLevels, List<int>? topBidderUserIds, List<AuctionRound>? rounds, int? currentRoundEndDate, int? currentRoundNumber, int? totalRoundCount, int? distributedItemCount, int? leftItemCount, int? acquiredItemCount, UserAuctionBid? userBid()?}) → AuctionStateActive
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
override
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.