mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-05 20:03:52 +00:00
Removed reference to domain classes in frontend
This commit is contained in:
1 parent
0684aebcfc
commit
b82f9703a2
2 files changed
+15
-6
No files matched your search
+1
-1
@@ -52,7 +52,7 @@ public class StatisticsBox extends Composite implements RefreshableWidget<EventS
|
||||
addItem(StatisticsBox.ICON_TRACKED_COUNT, MSG.trackedRaces(), statistics.getTrackedRacesCount());
|
||||
addItemIfNotNull(StatisticsBox.ICON_RAW_GPS_FIX, MSG.numberOfGPSFixes(), statistics.getNumberOfGPSFixes());
|
||||
addItemIfNotNull(StatisticsBox.ICON_FASTEST_SAILOR, MSG.fastestSailor() + ": "
|
||||
+ statistics.getMaxSpeed().getA().getName(), statistics.getMaxSpeed().getB().getKnots());
|
||||
+ statistics.getCompetitorInfo(), statistics.getCompetitorSpeed());
|
||||
addItemIfNotNull(StatisticsBox.ICON_WIND_FIX, MSG.numberWindFixes(), statistics.getNumberOfWindFixes());
|
||||
addItemIfNotNull(StatisticsBox.ICON_SUM_MILES, MSG.sailedMiles(), statistics.getTotalDistanceTraveled());
|
||||
}
|
||||
|
||||
+14
-5
@@ -1,5 +1,6 @@
|
||||
package com.sap.sailing.gwt.ui.shared.dispatch.event;
|
||||
|
||||
import com.google.gwt.core.shared.GwtIncompatible;
|
||||
import com.sap.sailing.domain.base.Competitor;
|
||||
import com.sap.sailing.domain.common.Distance;
|
||||
import com.sap.sailing.domain.common.Speed;
|
||||
@@ -16,15 +17,18 @@ public class EventStatisticsDTO implements DTO {
|
||||
|
||||
private long numberOfGPSFixes;
|
||||
private long numberOfWindFixes;
|
||||
private Triple<Competitor, Speed, TimePoint> maxSpeed;
|
||||
private String competitorInfo;
|
||||
private String competitorSpeed;
|
||||
private Distance totalDistanceTraveled;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private EventStatisticsDTO() {
|
||||
}
|
||||
|
||||
@GwtIncompatible
|
||||
public EventStatisticsDTO(Integer regattasFoughtCount, Integer competitorsCount, Integer racesRunCount,
|
||||
Integer trackedRacesCount, long numberOfGPSFixes, long numberOfWindFixes, Triple<Competitor, Speed, TimePoint> maxSpeed, Distance totalDistanceTraveled) {
|
||||
Integer trackedRacesCount, long numberOfGPSFixes, long numberOfWindFixes,
|
||||
Triple<Competitor, Speed, TimePoint> maxSpeed, Distance totalDistanceTraveled) {
|
||||
super();
|
||||
this.regattasFoughtCount = regattasFoughtCount;
|
||||
this.competitorsCount = competitorsCount;
|
||||
@@ -32,7 +36,8 @@ public class EventStatisticsDTO implements DTO {
|
||||
this.trackedRacesCount = trackedRacesCount;
|
||||
this.numberOfGPSFixes = numberOfGPSFixes;
|
||||
this.numberOfWindFixes = numberOfWindFixes;
|
||||
this.maxSpeed = maxSpeed;
|
||||
this.competitorInfo = maxSpeed.getA().getName();
|
||||
this.competitorSpeed = maxSpeed.getB().getKnots() + "kn";
|
||||
this.totalDistanceTraveled = totalDistanceTraveled;
|
||||
}
|
||||
|
||||
@@ -77,8 +82,12 @@ public class EventStatisticsDTO implements DTO {
|
||||
return numberOfWindFixes;
|
||||
}
|
||||
|
||||
public Triple<Competitor, Speed, TimePoint> getMaxSpeed() {
|
||||
return maxSpeed;
|
||||
public String getCompetitorInfo() {
|
||||
return competitorInfo;
|
||||
}
|
||||
|
||||
public String getCompetitorSpeed() {
|
||||
return competitorSpeed;
|
||||
}
|
||||
|
||||
public Distance getTotalDistanceTraveled() {
|
||||
|
||||
Reference in new issue
Block a user