PremiumGiveawayInfoCompleted class final
Describes a completed giveaway
- Inheritance
-
- Object
- TdObject
- PremiumGiveawayInfo
- PremiumGiveawayInfoCompleted
Constructors
- PremiumGiveawayInfoCompleted({required int creationDate, required int actualWinnersSelectionDate, required bool wasRefunded, required int winnerCount, required int activationCount, required String giftCode, dynamic extra, int? clientId})
-
Describes a completed giveaway
const
-
PremiumGiveawayInfoCompleted.fromJson(Map<
String, dynamic> json) -
Parses a PremiumGiveawayInfoCompleted from TDLib JSON.
factory
Properties
- activationCount → int
-
Number of winners, which activated their gift codes
final
- actualWinnersSelectionDate → int
-
Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in parameters of the giveaway
final
- clientId → int?
-
Identifier of the TDLib client that sent this object.
final
- creationDate → int
-
Point in time (Unix timestamp) when the giveaway was created
final
- extra → dynamic
-
"@extra" of the request this object answers.
final
- giftCode → String
-
Telegram Premium gift code that was received by the current user; empty if the user isn't a winner in the giveaway
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wasRefunded → bool
-
True, if the giveaway was canceled and was fully refunded
final
- winnerCount → int
-
Number of winners in the giveaway
final
Methods
-
copyWith(
{int? creationDate, int? actualWinnersSelectionDate, bool? wasRefunded, int? winnerCount, int? activationCount, String? giftCode, dynamic extra, int? clientId}) → PremiumGiveawayInfoCompleted -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto 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.