2020-04-01 10:10:13 +02:00
|
|
|
package org.telegram.telegrambots.meta.api.objects;
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
2020-11-01 23:46:36 +01:00
|
|
|
import lombok.AllArgsConstructor;
|
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
import lombok.Getter;
|
|
|
|
import lombok.NoArgsConstructor;
|
|
|
|
import lombok.Setter;
|
|
|
|
import lombok.ToString;
|
2020-04-01 10:10:13 +02:00
|
|
|
import org.telegram.telegrambots.meta.api.interfaces.BotApiObject;
|
|
|
|
|
|
|
|
/**
|
2022-11-04 17:23:27 +01:00
|
|
|
* This object represents an animated emoji that displays a random value.
|
2020-04-01 10:10:13 +02:00
|
|
|
* @author Ruben Bermudez
|
|
|
|
* @version 4.7
|
|
|
|
*/
|
2020-11-01 23:46:36 +01:00
|
|
|
@EqualsAndHashCode(callSuper = false)
|
|
|
|
@Getter
|
|
|
|
@Setter
|
|
|
|
@ToString
|
|
|
|
@NoArgsConstructor
|
|
|
|
@AllArgsConstructor
|
2020-04-01 10:10:13 +02:00
|
|
|
public class Dice implements BotApiObject {
|
|
|
|
private static final String VALUE_FIELD = "value";
|
2020-04-24 10:03:23 +02:00
|
|
|
private static final String EMOJI_FIELD = "emoji";
|
2020-04-01 10:10:13 +02:00
|
|
|
|
2020-11-01 23:46:36 +01:00
|
|
|
/**
|
2021-03-09 11:59:28 +01:00
|
|
|
* Value of the dice,
|
|
|
|
* 1-6 for “🎲”, “🎯” and “🎳” base emoji,
|
|
|
|
* 1-5 for “🏀” and “⚽” base emoji,
|
2020-11-01 23:46:36 +01:00
|
|
|
* 1-64 for “🎰” base emoji
|
|
|
|
*/
|
2020-04-01 10:10:13 +02:00
|
|
|
@JsonProperty(VALUE_FIELD)
|
2020-11-01 23:46:36 +01:00
|
|
|
private Integer value;
|
2022-11-04 17:23:27 +01:00
|
|
|
/**
|
|
|
|
* Emoji on which the dice throw animation is based
|
|
|
|
*/
|
2020-04-24 10:03:23 +02:00
|
|
|
@JsonProperty(EMOJI_FIELD)
|
2022-11-04 17:23:27 +01:00
|
|
|
private String emoji;
|
2020-04-01 10:10:13 +02:00
|
|
|
}
|