MessageActionGiftCode class

Message Action Gift Code.

ID: 31c48347.

Inheritance

Constructors

MessageActionGiftCode({required bool viaGiveaway, required bool unclaimed, PeerBase? boostPeer, required int days, required String slug, String? currency, int? amount, String? cryptoCurrency, int? cryptoAmount, TextWithEntitiesBase? message})
Message Action Gift Code constructor.
const
MessageActionGiftCode.deserialize(BinaryReader reader)
Deserialize.
factory

Properties

amount → int?
Amount.
final
boostPeer → PeerBase?
Boost Peer.
final
cryptoAmount → int?
Crypto Amount.
final
cryptoCurrency → String?
Crypto Currency.
final
currency → String?
Currency.
final
days → int
Days.
final
flags → int
Flags.
no setter
hashCode → int
The hash code for this object.
no setterinherited
message → TextWithEntitiesBase?
Message.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
slug → String
Slug.
final
unclaimed → bool
unclaimed: bit 5 of flags.5?true
final
viaGiveaway → bool
via_giveaway: bit 0 of flags.0?true
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize(List<int> buffer) → void
Serialize.
override
toJson() → Map<String, dynamic>
Converts an object to JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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