Frontend revision 2. Expanded template functionality and convenience
This commit is contained in:
parent
e5a84268cc
commit
723cd41487
6 changed files with 142 additions and 89 deletions
|
@ -9,11 +9,11 @@ public class Achievements {
|
|||
|
||||
public static class Achievement {
|
||||
|
||||
@JsonProperty("Name")
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
@JsonProperty("Description")
|
||||
@JsonProperty("description")
|
||||
private String description;
|
||||
@JsonProperty("Stages")
|
||||
@JsonProperty("stages")
|
||||
private int stages;
|
||||
|
||||
public Achievement(String name, String description, int stages) {
|
||||
|
@ -37,11 +37,11 @@ public class Achievements {
|
|||
// End Getters/Setters
|
||||
}
|
||||
|
||||
@JsonProperty("GameID")
|
||||
@JsonProperty("gameID")
|
||||
private int gameID;
|
||||
@JsonProperty("GameName")
|
||||
@JsonProperty("gameName")
|
||||
private String gameName;
|
||||
@JsonProperty("Achievements")
|
||||
@JsonProperty("achievements")
|
||||
private List<Achievement> achievements;
|
||||
|
||||
public Achievements() { achievements = new ArrayList<Achievement>(); }
|
||||
|
|
|
@ -11,9 +11,9 @@ public class Games {
|
|||
|
||||
@JsonProperty("ID")
|
||||
private int id;
|
||||
@JsonProperty("Name")
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
@JsonProperty("Platforms")
|
||||
@JsonProperty("platforms")
|
||||
private List<String> platforms;
|
||||
|
||||
public Game(int id, String name, String platform) {
|
||||
|
@ -41,7 +41,7 @@ public class Games {
|
|||
|
||||
}
|
||||
|
||||
@JsonProperty("Games")
|
||||
@JsonProperty("games")
|
||||
private List<Game> games;
|
||||
|
||||
public Games() { games = new ArrayList<Game>(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue