2017-11-15 21:53:52 +00:00
|
|
|
package Classes;
|
|
|
|
|
|
|
|
public enum Category {
|
2017-11-19 13:44:40 +00:00
|
|
|
// 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; }
|
2017-12-12 13:39:34 +00:00
|
|
|
|
2017-11-15 21:53:52 +00:00
|
|
|
}
|