diff --git a/java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/shared/Request1TurnerDTO.java b/java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/shared/Request1TurnerDTO.java index 5df01d9969a..545ce46c436 100644 --- a/java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/shared/Request1TurnerDTO.java +++ b/java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/shared/Request1TurnerDTO.java @@ -4,25 +4,32 @@ import com.google.gwt.user.client.rpc.IsSerializable; public class Request1TurnerDTO implements IsSerializable { - public Integer boatClassID = 0; + public Integer selectedBoatClassIndex = 0; public PositionDTO firstPoint = null; public Long firstPointTimepoint = 0L; public PositionDTO secondPoint = null; public Boolean leftSide = false; + public int selectedRaceIndex; + public int selectedLegIndex; + public int selectedCompetitorIndex; public Request1TurnerDTO() { - this.boatClassID = 0; + this.selectedBoatClassIndex = 0; this.firstPoint = null; this.firstPointTimepoint = 0L; this.secondPoint = null; this.leftSide = false; } - public Request1TurnerDTO(int boatClassID, PositionDTO firstPoint, Long firstPointTimepoint, PositionDTO secondPoint, boolean leftSide) { - this.boatClassID = boatClassID; + public Request1TurnerDTO(int selectedBoatClassIndex, int selectedRaceIndex, int selectedCompetitorIndex, int selectedLegIndex, PositionDTO firstPoint, + Long firstPointTimepoint, PositionDTO secondPoint, boolean leftSide) { + this.selectedBoatClassIndex = selectedBoatClassIndex; this.firstPoint = firstPoint; this.firstPointTimepoint = firstPointTimepoint; this.secondPoint = secondPoint; this.leftSide = leftSide; + this.selectedRaceIndex = selectedRaceIndex; + this.selectedCompetitorIndex = selectedCompetitorIndex; + this.selectedLegIndex = selectedLegIndex; } } diff --git a/java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/shared/RequestTotalTimeDTO.java b/java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/shared/RequestTotalTimeDTO.java index 701160231e7..ec78d5231ac 100644 --- a/java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/shared/RequestTotalTimeDTO.java +++ b/java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/shared/RequestTotalTimeDTO.java @@ -7,15 +7,18 @@ import com.google.gwt.user.client.rpc.IsSerializable; public class RequestTotalTimeDTO implements IsSerializable { - public int boatClassID = 0; + public int selectedBoatClassIndex = 0; public List allPoints = null; public List turnPoints = null; public boolean useRealAverageWindSpeed = false; public int stepDurationMilliseconds = 0; public boolean debugMode = false; + public int selectedRaceIndex; + public int selectedCompetitorIndex; + public int selectedLegIndex; public RequestTotalTimeDTO() { - this.boatClassID = 0; + this.selectedBoatClassIndex = 0; this.allPoints = new ArrayList(); this.turnPoints = new ArrayList(); this.useRealAverageWindSpeed = true; @@ -23,13 +26,19 @@ public class RequestTotalTimeDTO implements IsSerializable { this.debugMode = false; } - public RequestTotalTimeDTO(final int boatClassID, final List allPoints, final List turnPoints, - final boolean useRealAverageWindSpeed, final int stepDurationMilliseconds, final boolean debugMode) { - this.boatClassID = boatClassID; + public RequestTotalTimeDTO(int selectedBoatClassIndex, int selectedRaceIndex, int selectedCompetitorIndex, int selectedLegIndex, + int stepDurationMilliseconds, + List allPoints, List turnPoints, boolean useRealAverageWindSpeed, boolean debugMode) { + this.selectedBoatClassIndex = selectedBoatClassIndex; this.allPoints = allPoints; this.turnPoints = turnPoints; this.useRealAverageWindSpeed = useRealAverageWindSpeed; this.stepDurationMilliseconds = stepDurationMilliseconds; + + this.selectedRaceIndex = selectedRaceIndex; + this.selectedCompetitorIndex = selectedCompetitorIndex; + this.selectedLegIndex = selectedLegIndex; + this.debugMode = debugMode; } }