PrepaidPremiumGiveaway class final

PrepaidPremiumGiveaway (prepaidPremiumGiveaway) - basic class

Describes a prepaid Telegram Premium giveaway.

  • id: Unique identifier of the prepaid giveaway.
  • winnerCount: Number of users which will receive Telegram Premium subscription gift codes.
  • monthCount: Number of months the Telegram Premium subscription will be active after code activation.
  • paymentDate: Point in time (Unix timestamp) when the giveaway was paid.
Inheritance

Constructors

PrepaidPremiumGiveaway({required int id, required int winnerCount, required int monthCount, required int paymentDate})
PrepaidPremiumGiveaway (prepaidPremiumGiveaway) - basic class
const
PrepaidPremiumGiveaway.fromJson(Map<String, dynamic> json)
Parse from a json
factory

Properties

clientId int?
Client ID, from which this object was received
no setterinherited
currentObjectId String
TDLib object type for current class instance
no setteroverride
extra → dynamic
A sign from TDLib update
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id int
Unique identifier of the prepaid giveaway
final
monthCount int
Number of months the Telegram Premium subscription will be active after code activation
final
paymentDate int
Point in time (Unix timestamp) when the giveaway was paid
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
winnerCount int
Number of users which will receive Telegram Premium subscription gift codes
final

Methods

copyWith({int? id, int? winnerCount, int? monthCount, int? paymentDate}) PrepaidPremiumGiveaway
Copy model with modified properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert model to TDLib JSON format
override
toString() String
Convert model to TDLib JSON format, encoded into String.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

defaultObjectId → const String
TDLib object type