X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=war%2Fsrc%2Fmain%2Fjava%2Fpnews%2FCategory.java;h=677ca44538d86ec0aab02775249b7d7776aeb259;hb=2481160117db50107e983ac8a4a8979c7424ff47;hp=7a8106fd9a4fd91777f16e44c6b7c6d65a1abde4;hpb=37f49f7419bb662f1a24ae7ffd3b72e3f84a4561;p=pnews.git diff --git a/war/src/main/java/pnews/Category.java b/war/src/main/java/pnews/Category.java index 7a8106f..677ca44 100644 --- a/war/src/main/java/pnews/Category.java +++ b/war/src/main/java/pnews/Category.java @@ -1,22 +1,29 @@ package pnews; public enum Category { - TOP("top"), - FRANCE("france"), - SPORT("sport"), - EUROPE("europe"), - ECO("eco"), - ESSONNE("essonne"), - TECHNOLOGIE("technologie"), - PEOPLE("people"); + TOP("actualite", "Les actualités à la une"), + FRANCE("france", "France"), + SPORT("sport", "Sport"), + EUROPE("europe", "Europe"), + MONDE("monde", "Monde"), + ECO("economie", "Economie"), + ESSONNE("essonne", "Essone"), + TECHNOLOGIE("technologie", "Technologie"), + PEOPLE("people", "People"); private final String id; + private final String title; - private Category(String id) { + private Category(String id, String title) { this.id = id; + this.title = title; } public String getId() { return id; } + + public String getTitle() { + return title; + } }