25 lines
837 B
Java
25 lines
837 B
Java
package Classes;
|
|
|
|
public enum Category {
|
|
|
|
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; }
|
|
}
|