mirror of https://github.com/KokaKiwi/BarInsta
44 lines
1.1 KiB
Java
44 lines
1.1 KiB
Java
package awais.instagrabber.customviews.emoji;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
public enum EmojiCategoryType {
|
|
SMILEYS_AND_EMOTION("Smileys & Emotion"),
|
|
// PEOPLE_AND_BODY("People & Body"),
|
|
ANIMALS_AND_NATURE("Animals & Nature"),
|
|
FOOD_AND_DRINK("Food & Drink"),
|
|
TRAVEL_AND_PLACES("Travel & Places"),
|
|
ACTIVITIES("Activities"),
|
|
OBJECTS("Objects"),
|
|
SYMBOLS("Symbols"),
|
|
FLAGS("Flags"),
|
|
OTHERS("Others");
|
|
|
|
private final String name;
|
|
|
|
private static final Map<String, EmojiCategoryType> map = new HashMap<>();
|
|
|
|
static {
|
|
for (EmojiCategoryType type : EmojiCategoryType.values()) {
|
|
map.put(type.name, type);
|
|
}
|
|
}
|
|
|
|
EmojiCategoryType(final String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public static EmojiCategoryType valueOfName(final String name) {
|
|
final EmojiCategoryType emojiCategoryType = map.get(name);
|
|
if (emojiCategoryType == null) {
|
|
return EmojiCategoryType.OTHERS;
|
|
}
|
|
return emojiCategoryType;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
}
|