java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.MessageContent
it.tdlight.jni.TdApi.MessageDice
- Enclosing class:
- TdApi
A dice message. The dice value is randomly generated by the server.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.Emoji on which the dice throw animation is based.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.int
Number of frame after which a success animation like a shower of confetti needs to be shown on updateMessageSendSucceeded.int
The dice value. -
Constructor Summary
ConstructorDescriptionA dice message.MessageDice
(TdApi.DiceStickers initialState, TdApi.DiceStickers finalState, String emoji, int value, int successAnimationFrameNumber) A dice message.MessageDice
(DataInput input) A dice message. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
initialState
The animated stickers with the initial dice animation; may be null if unknown. updateMessageContent will be sent when the sticker became known. -
finalState
The animated stickers with the final dice animation; may be null if unknown. updateMessageContent will be sent when the sticker became known. -
emoji
Emoji on which the dice throw animation is based. -
value
public int valueThe dice value. If the value is 0, the dice don't have final state yet. -
successAnimationFrameNumber
public int successAnimationFrameNumberNumber of frame after which a success animation like a shower of confetti needs to be shown on updateMessageSendSucceeded. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
MessageDice
public MessageDice()A dice message. The dice value is randomly generated by the server. -
MessageDice
public MessageDice(TdApi.DiceStickers initialState, TdApi.DiceStickers finalState, String emoji, int value, int successAnimationFrameNumber) A 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. updateMessageContent will be sent when the sticker became known.finalState
- The animated stickers with the final dice animation; may be null if unknown. updateMessageContent will be sent when the sticker became known.emoji
- Emoji on which the dice throw animation is based.value
- The dice value. If the value is 0, the dice don't have final state yet.successAnimationFrameNumber
- Number of frame after which a success animation like a shower of confetti needs to be shown on updateMessageSendSucceeded.
-
MessageDice
A dice message. The dice value is randomly generated by the server.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-