Package org.drinkless.tdlib
Class TdApi.MessageStakeDice
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.MessageContent
org.drinkless.tdlib.TdApi.MessageStakeDice
- Enclosing class:
- TdApi
A stake dice message. The dice value is randomly generated by the server.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.The animated stickers with the final dice animation; may be null if unknown.The animated stickers with the initial dice animation; may be null if unknown.longThe amount of Toncoins that were gained from the roll; in the smallest units of the currency; -1 if the dice don't have final state yet.longThe amount of Toncoins that were staked; in the smallest units of the currency.intThe dice value. -
Constructor Summary
ConstructorsConstructorDescriptionA stake dice message.MessageStakeDice(TdApi.DiceStickers initialState, TdApi.DiceStickers finalState, int value, long stakeToncoinAmount, long prizeToncoinAmount) A stake dice message. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
initialState
The animated stickers with the initial dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known. -
finalState
The animated stickers with the final dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known. -
value
public int valueThe dice value. If the value is 0, then the dice don't have final state yet. -
stakeToncoinAmount
public long stakeToncoinAmountThe amount of Toncoins that were staked; in the smallest units of the currency. -
prizeToncoinAmount
public long prizeToncoinAmountThe amount of Toncoins that were gained from the roll; in the smallest units of the currency; -1 if the dice don't have final state yet. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
MessageStakeDice
public MessageStakeDice()A stake dice message. The dice value is randomly generated by the server. -
MessageStakeDice
public MessageStakeDice(TdApi.DiceStickers initialState, TdApi.DiceStickers finalState, int value, long stakeToncoinAmount, long prizeToncoinAmount) A stake dice message. The dice value is randomly generated by the server.- Parameters:
initialState- The animated stickers with the initial dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known.finalState- The animated stickers with the final dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known.value- The dice value. If the value is 0, then the dice don't have final state yet.stakeToncoinAmount- The amount of Toncoins that were staked; in the smallest units of the currency.prizeToncoinAmount- The amount of Toncoins that were gained from the roll; in the smallest units of the currency; -1 if the dice don't have final state yet.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-