[PATCH 05 of 12] Add start- and stoptime to WQInfoObjects

Wald Commits scm-commit at wald.intevation.org
Tue Nov 12 17:18:44 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1384253245 -3600
# Node ID 19a133698eaf3e5f21e6066671de063f6ae3cf11
# Parent  4e999b1d7acdc35bf449604d081729070ed8fd57
Add start- and stoptime to WQInfoObjects.

diff -r 4e999b1d7acd -r 19a133698eaf gwt-client/src/main/java/org/dive4elements/river/client/shared/model/WQInfoObject.java
--- 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 :
diff -r 4e999b1d7acd -r 19a133698eaf gwt-client/src/main/java/org/dive4elements/river/client/shared/model/WQInfoObjectImpl.java
--- 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;
     }


More information about the Dive4elements-commits mailing list