mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-02 17:19:37 +00:00
Added RaceDataInfo to RegattaMetadataDTO
This commit is contained in:
1 parent
58fe2b8342
commit
4d2a518d3e
1 file changed
+40
+40
@@ -2,6 +2,7 @@ package com.sap.sailing.gwt.home.communication.eventview;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.sap.sse.gwt.dispatch.shared.commands.DTO;
|
||||
|
||||
public class RegattaMetadataDTO extends RegattaReferenceDTO implements HasRegattaMetadata {
|
||||
private int raceCount;
|
||||
@@ -14,6 +15,7 @@ public class RegattaMetadataDTO extends RegattaReferenceDTO implements HasRegatt
|
||||
private Date endDate;
|
||||
private RegattaState state;
|
||||
private boolean flexibleLeaderboard;
|
||||
private RaceDataInfo raceDataInfo;
|
||||
|
||||
public RegattaMetadataDTO() {
|
||||
}
|
||||
@@ -104,4 +106,42 @@ public class RegattaMetadataDTO extends RegattaReferenceDTO implements HasRegatt
|
||||
public void setDefaultCourseAreaId(String defaultCourseAreaId) {
|
||||
this.defaultCourseAreaId = defaultCourseAreaId;
|
||||
}
|
||||
|
||||
public RaceDataInfo getRaceDataInfo() {
|
||||
return raceDataInfo;
|
||||
}
|
||||
|
||||
public void setRaceDataInfo(RaceDataInfo raceDataInfo) {
|
||||
this.raceDataInfo = raceDataInfo;
|
||||
}
|
||||
|
||||
public static class RaceDataInfo implements DTO {
|
||||
private boolean hasGPSData, hasWindData, hasVideoData, hasAudioData;
|
||||
|
||||
protected RaceDataInfo() {
|
||||
}
|
||||
|
||||
public RaceDataInfo(boolean hasGPSData, boolean hasWindData, boolean hasVideoData, boolean hasAudioData) {
|
||||
this.hasGPSData = hasGPSData;
|
||||
this.hasWindData = hasWindData;
|
||||
this.hasVideoData = hasVideoData;
|
||||
this.hasAudioData = hasAudioData;
|
||||
}
|
||||
|
||||
public boolean hasGPSData() {
|
||||
return hasGPSData;
|
||||
}
|
||||
|
||||
public boolean hasWindData() {
|
||||
return hasWindData;
|
||||
}
|
||||
|
||||
public boolean hasVideoData() {
|
||||
return hasVideoData;
|
||||
}
|
||||
|
||||
public boolean hasAudioData() {
|
||||
return hasAudioData;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user