public class Emoji extends Object
Modifier and Type | Method and Description |
---|---|
static Optional<Emoji> |
getByID(int id)
Gets any Emoji from the cache by its ID.
|
PromisedValue<Integer,EmojiCategory> |
getCategory()
Gets the category of the emoji.
|
String |
getDescription()
Gets the description of the emoji.
|
int |
getFaves()
Gets the latest amount of faves of the emoji.
|
OptionalInt |
getFilesize()
Gets the file size of the emoji image.
|
OptionalInt |
getHeight()
Gets the height of the emoji image.
|
int |
getId()
Gets the ID of the emoji.
|
URL |
getImageURL()
Gets the image URL of the emoji.
|
Optional<String> |
getLicense()
Gets the license of the emoji.
|
static Emoji |
getOrCreate(com.fasterxml.jackson.databind.JsonNode data)
Internal method.
|
String |
getSlug()
Gets the URL slug of the emoji.
|
Optional<String> |
getSource()
Gets the source of the emoji.
|
String |
getSubmittedBy()
Gets the name of the person who submitted the emoji.
|
String |
getTitle()
Gets the title of the emoji.
|
OptionalInt |
getWidth()
Gets the width of the emoji image.
|
public int getId()
public String getTitle()
public String getSlug()
public URL getImageURL()
public String getDescription()
public PromisedValue<Integer,EmojiCategory> getCategory()
To receive the possible value, you must first refresh the EmojiCategory-Cache.
public Optional<String> getLicense()
public Optional<String> getSource()
public int getFaves()
public String getSubmittedBy()
public OptionalInt getWidth()
public OptionalInt getHeight()
public OptionalInt getFilesize()
public static Optional<Emoji> getByID(int id)
id
- The ID of the Emoji to get.public static Emoji getOrCreate(com.fasterxml.jackson.databind.JsonNode data)