mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-30 09:26:44 +00:00
added status ("MaxPointsReason") to Race in Kieler Woche result service
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package com.sap.sailing.kiworesultimport;
|
||||
|
||||
public interface Race {
|
||||
String getStatus();
|
||||
|
||||
Double getPoints();
|
||||
|
||||
Integer getNumber();
|
||||
|
||||
+6
@@ -20,4 +20,10 @@ public class RaceImpl extends AbstractNodeWrapper implements Race {
|
||||
return Integer.valueOf(getNode().getAttributes().getNamedItem("number").getNodeValue());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getStatus() {
|
||||
final Node namedItem = getNode().getAttributes().getNamedItem("status");
|
||||
return namedItem == null || namedItem.getNodeValue() == null || namedItem.getNodeValue().trim().length() == 0 ? null : namedItem.getNodeValue();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user