load feeds configuration from json
[pnews.git] / war / src / main / java / pnews / Category.java
index 2d50c06..6656ea7 100644 (file)
@@ -1,23 +1,27 @@
 package pnews;
 
 public enum Category {
-        TOP("top"),
-        FRANCE("france"),
-        SPORT("sport"),
-        EUROPE("europe"),
-        MONDE("monde"),
-        ECO("eco"),
-        ESSONNE("essonne"),
-        TECHNOLOGIE("technologie"),
-        PEOPLE("people");
+        ACTUALITE("Les actualités à la une"),
+        FRANCE("France"),
+        SPORT("Sport"),
+        EUROPE("Europe"),
+        MONDE("Monde"),
+        ECONOMIE("Economie"),
+        ESSONNE("Essonne"),
+        TECHNOLOGIE("Technologie"),
+        PEOPLE("People");
         
-        private final String id;
+        private final String title;
                 
-        private Category(String id) {
-                this.id = id;
+        private Category(String title) {
+                this.title = title;
         }
         
         public String getId() {
-                return id;
+                return name();
+        }
+        
+        public String getTitle() {
+                return title;
         }
 }