Mercurial > dive4elements > river
changeset 7554:19a133698eaf
Add start- and stoptime to WQInfoObjects.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 12 Nov 2013 11:47:25 +0100 |
parents | 4e999b1d7acd |
children | 74e9768098a0 |
files | gwt-client/src/main/java/org/dive4elements/river/client/shared/model/WQInfoObject.java gwt-client/src/main/java/org/dive4elements/river/client/shared/model/WQInfoObjectImpl.java |
diffstat | 2 files changed, 23 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/shared/model/WQInfoObject.java Tue Nov 12 11:46:24 2013 +0100 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/shared/model/WQInfoObject.java Tue Nov 12 11:47:25 2013 +0100 @@ -23,5 +23,9 @@ Double getValue(); boolean isOfficial(); + + String getStartTime(); + + String getStopTime(); } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
--- a/gwt-client/src/main/java/org/dive4elements/river/client/shared/model/WQInfoObjectImpl.java Tue Nov 12 11:46:24 2013 +0100 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/shared/model/WQInfoObjectImpl.java Tue Nov 12 11:47:25 2013 +0100 @@ -20,6 +20,10 @@ protected Double value; + protected String startTime; + + protected String stopTime; + protected boolean isOfficial; @@ -31,16 +35,30 @@ String name, String type, Double value, - boolean isOfficial + boolean isOfficial, + String startTime, + String stopTime ) { this.name = name; this.type = type; this.value = value; this.isOfficial = isOfficial; + this.startTime = startTime; + this.stopTime = stopTime; } @Override + public String getStopTime() { + return stopTime; + } + + @Override + public String getStartTime() { + return startTime; + } + + @Override public String getName() { return name; }