Class Dice
- java.lang.Object
-
- io.micronaut.chatbots.telegram.api.Dice
-
public class Dice extends java.lang.Object
This object represents an animated emoji that displays a random value. Dice- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
-
Constructor Summary
Constructors Constructor Description Dice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEmoji()
java.lang.Integer
getValue()
void
setEmoji(java.lang.String emoji)
void
setValue(java.lang.Integer value)
-
-
-
Method Detail
-
getEmoji
@NonNull public java.lang.String getEmoji()
- Returns:
- Emoji on which the dice throw animation is based.
-
setEmoji
public void setEmoji(@NonNull java.lang.String emoji)
- Parameters:
emoji
- Emoji on which the dice throw animation is based.
-
getValue
@NonNull public java.lang.Integer getValue()
- Returns:
- Value of the dice, 1-6 for “🎲”, “🎯” and “🎳” base emoji, 1-5 for “🏀” and “⚽” base emoji, 1-64 for “🎰” base emoji.
-
setValue
public void setValue(@NonNull java.lang.Integer value)
- Parameters:
value
- Value of the dice, 1-6 for “🎲”, “🎯” and “🎳” base emoji, 1-5 for “🏀” and “⚽” base emoji, 1-64 for “🎰” base emoji.
-
-