-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
78 additions
and
27 deletions.
There are no files selected for viewing
88 changes: 61 additions & 27 deletions
88
...ackend/src/main/java/org/dpppt/additionalinfo/backend/ws/model/statistics/Statistics.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,78 @@ | ||
package org.dpppt.additionalinfo.backend.ws.model.statistics; | ||
|
||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
import java.time.LocalDate; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import org.dpppt.additionalinfo.backend.ws.json.CustomLocalDateSerializer; | ||
|
||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
|
||
public class Statistics { | ||
|
||
@JsonSerialize(using = CustomLocalDateSerializer.class) | ||
private LocalDate lastUpdated; | ||
|
||
private Integer totalActiveUsers; | ||
|
||
private List<History> history = new ArrayList<History>(); | ||
@JsonSerialize(using = CustomLocalDateSerializer.class) | ||
private LocalDate lastUpdated; | ||
|
||
private Integer totalActiveUsers; | ||
|
||
private Integer totalCovidcodesEntered; | ||
private Double totalCovidcodesEntered0to2d; | ||
private Integer newInfectionsSevenDayAvg; | ||
private Double newInfectionsSevenDayAvgRelPrevWeek; | ||
|
||
private List<History> history = new ArrayList<History>(); | ||
|
||
public Integer getTotalActiveUsers() { | ||
return totalActiveUsers; | ||
} | ||
|
||
public void setTotalActiveUsers(Integer totalActiveUsers) { | ||
this.totalActiveUsers = totalActiveUsers; | ||
} | ||
|
||
public Integer getTotalCovidcodesEntered() { | ||
return totalCovidcodesEntered; | ||
} | ||
|
||
public void setTotalCovidcodesEntered(Integer totalCovidcodesEntered) { | ||
this.totalCovidcodesEntered = totalCovidcodesEntered; | ||
} | ||
|
||
public Double getTotalCovidcodesEntered0to2d() { | ||
return totalCovidcodesEntered0to2d; | ||
} | ||
|
||
public void setTotalCovidcodesEntered0to2d(Double totalCovidcodesEntered0to2d) { | ||
this.totalCovidcodesEntered0to2d = totalCovidcodesEntered0to2d; | ||
} | ||
|
||
public Integer getNewInfectionsSevenDayAvg() { | ||
return newInfectionsSevenDayAvg; | ||
} | ||
|
||
public Integer getTotalActiveUsers() { | ||
return totalActiveUsers; | ||
} | ||
public void setNewInfectionsSevenDayAvg(Integer newInfectionsSevenDayAvg) { | ||
this.newInfectionsSevenDayAvg = newInfectionsSevenDayAvg; | ||
} | ||
|
||
public void setTotalActiveUsers(Integer totalActiveUsers) { | ||
this.totalActiveUsers = totalActiveUsers; | ||
} | ||
public Double getNewInfectionsSevenDayAvgRelPrevWeek() { | ||
return newInfectionsSevenDayAvgRelPrevWeek; | ||
} | ||
|
||
public List<History> getHistory() { | ||
return history; | ||
} | ||
public void setNewInfectionsSevenDayAvgRelPrevWeek(Double newInfectionsSevenDayAvgRelPrevWeek) { | ||
this.newInfectionsSevenDayAvgRelPrevWeek = newInfectionsSevenDayAvgRelPrevWeek; | ||
} | ||
|
||
public void setHistory(List<History> history) { | ||
this.history = history; | ||
} | ||
public List<History> getHistory() { | ||
return history; | ||
} | ||
|
||
public LocalDate getLastUpdated() { | ||
return lastUpdated; | ||
} | ||
public void setHistory(List<History> history) { | ||
this.history = history; | ||
} | ||
|
||
public void setLastUpdated(LocalDate lastUpdated) { | ||
this.lastUpdated = lastUpdated; | ||
} | ||
public LocalDate getLastUpdated() { | ||
return lastUpdated; | ||
} | ||
|
||
public void setLastUpdated(LocalDate lastUpdated) { | ||
this.lastUpdated = lastUpdated; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters