public enum Endpoint extends Enum<Endpoint>
All endpoints are used with the GET
-Method.
Enum Constant and Description |
---|
LIST_ALL_CATEGORIES
The endpoint to request all available EmojiCategories.
|
LIST_ALL_EMOJIS
The endpoint to request all available Emojis.
|
LIST_ALL_PACKS
The endpoint to request all available EmojiPacks.
|
LIST_WEBSITE_STATS
The endpoint to request the current website stats.
|
Modifier and Type | Method and Description |
---|---|
static Endpoint |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Endpoint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Endpoint LIST_ALL_EMOJIS
public static final Endpoint LIST_ALL_PACKS
public static final Endpoint LIST_ALL_CATEGORIES
public static final Endpoint LIST_WEBSITE_STATS
public final URL url
public static Endpoint[] values()
for (Endpoint c : Endpoint.values()) System.out.println(c);
public static Endpoint valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null