26 lines
771 B
Java
26 lines
771 B
Java
package Classes;
|
|
|
|
public enum Category {
|
|
// business, entertainment, gaming, general, healthAndMedical, music, politics, scienceAndNature, sport, technology, all
|
|
|
|
all("all", "black"),
|
|
business("business", "red"),
|
|
entertainment("entertainment", "skyblue"),
|
|
gaming("gaming", "green"),
|
|
health("health", "yellow"),
|
|
music("music", "purple"),
|
|
sport("sport", "brown"),
|
|
science("science", "#f14405"),
|
|
nature("nature", "#16c668"),
|
|
economics("economics", "#d1991b"),
|
|
politics("politics", "#6825f4"),
|
|
technology("technology", "#1e7ebe");
|
|
|
|
protected String color;
|
|
protected String label;
|
|
Category(String label, String color){ this.label = label; this.color = color; }
|
|
|
|
public String getLabel(){ return this.label; }
|
|
public String getColor(){ return this.color; }
|
|
}
|