MessageStakeDice class final
A stake dice message. The dice value is randomly generated by the server
- Inheritance
-
- Object
- TdObject
- MessageContent
- MessageStakeDice
Constructors
- MessageStakeDice({DiceStickers? initialState, DiceStickers? finalState, required int value, required int stakeGramAmount, required int prizeGramAmount})
-
A stake dice message. The dice value is randomly generated by the server
const
-
MessageStakeDice.fromJson(Map<
String, dynamic> json) -
Parses a MessageStakeDice from TDLib JSON.
factory
Properties
- 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
- finalState → DiceStickers?
-
The animated stickers with the final dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialState → DiceStickers?
-
The animated stickers with the initial dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known
final
- prizeGramAmount → int
-
The TON Gram amount that was gained from the roll; in the smallest units of the currency; -1 if the dice don't have final state yet
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stakeGramAmount → int
-
The TON Gram amount that was staked; in the smallest units of the currency
final
- value → int
-
The dice value. If the value is 0, then the dice don't have final state yet
final
Methods
-
copyWith(
{DiceStickers? initialState()?, DiceStickers? finalState()?, int? value, int? stakeGramAmount, int? prizeGramAmount}) → MessageStakeDice -
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.