projects
/
pnews.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
load feeds configuration from json
[pnews.git]
/
war
/
src
/
main
/
java
/
pnews
/
Category.java
diff --git
a/war/src/main/java/pnews/Category.java
b/war/src/main/java/pnews/Category.java
index
2d50c06
..
6656ea7
100644
(file)
--- a/
war/src/main/java/pnews/Category.java
+++ b/
war/src/main/java/pnews/Category.java
@@
-1,23
+1,27
@@
package pnews;
public enum Category {
package pnews;
public enum Category {
-
TOP("top
"),
- FRANCE("
f
rance"),
- SPORT("
s
port"),
- EUROPE("
e
urope"),
- MONDE("
m
onde"),
- ECO
("eco
"),
- ESSONNE("
e
ssonne"),
- TECHNOLOGIE("
t
echnologie"),
- PEOPLE("
p
eople");
+
ACTUALITE("Les actualités à la une
"),
+ FRANCE("
F
rance"),
+ SPORT("
S
port"),
+ EUROPE("
E
urope"),
+ MONDE("
M
onde"),
+ ECO
NOMIE("Economie
"),
+ ESSONNE("
E
ssonne"),
+ TECHNOLOGIE("
T
echnologie"),
+ PEOPLE("
P
eople");
- 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() {
}
public String getId() {
- return id;
+ return name();
+ }
+
+ public String getTitle() {
+ return title;
}
}
}
}