mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-30 09:26:44 +00:00
extend wailing interval after dropping collections a little
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
package com.sap.sailing.kiworesultimport;
|
||||
|
||||
import com.sap.sailing.domain.common.MaxPointsReason;
|
||||
|
||||
public interface Race {
|
||||
String getStatus();
|
||||
|
||||
Double getPoints();
|
||||
|
||||
Integer getNumber();
|
||||
|
||||
MaxPointsReason getMaxPointsReason();
|
||||
}
|
||||
|
||||
+12
@@ -2,6 +2,7 @@ package com.sap.sailing.kiworesultimport.impl;
|
||||
|
||||
import org.w3c.dom.Node;
|
||||
|
||||
import com.sap.sailing.domain.common.MaxPointsReason;
|
||||
import com.sap.sailing.kiworesultimport.Race;
|
||||
|
||||
public class RaceImpl extends AbstractNodeWrapper implements Race {
|
||||
@@ -26,4 +27,15 @@ public class RaceImpl extends AbstractNodeWrapper implements Race {
|
||||
return namedItem == null || namedItem.getNodeValue() == null || namedItem.getNodeValue().trim().length() == 0 ? null : namedItem.getNodeValue();
|
||||
}
|
||||
|
||||
@Override
|
||||
public MaxPointsReason getMaxPointsReason() {
|
||||
MaxPointsReason result;
|
||||
String status = getStatus();
|
||||
if (status != null) {
|
||||
result = MaxPointsReason.valueOf(status);
|
||||
} else {
|
||||
result = MaxPointsReason.NONE;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user