mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-02 10:23:51 +00:00
These DTOs now have the selected indexes of the boat classes selector, of the races selector, of the competitors selector and of the legs selector.
This commit is contained in:
1 parent
37c8548c8c
commit
ddee4cd604
2 files changed
+25
-9
No files matched your search
+11
-4
@@ -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;
|
||||
}
|
||||
}
|
||||
+14
-5
@@ -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<SimulatorWindDTO> allPoints = null;
|
||||
public List<PositionDTO> 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<SimulatorWindDTO>();
|
||||
this.turnPoints = new ArrayList<PositionDTO>();
|
||||
this.useRealAverageWindSpeed = true;
|
||||
@@ -23,13 +26,19 @@ public class RequestTotalTimeDTO implements IsSerializable {
|
||||
this.debugMode = false;
|
||||
}
|
||||
|
||||
public RequestTotalTimeDTO(final int boatClassID, final List<SimulatorWindDTO> allPoints, final List<PositionDTO> 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<SimulatorWindDTO> allPoints, List<PositionDTO> 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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user