mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-27 22:37:15 +00:00
Refactored EventDTO structure
This commit is contained in:
1 parent
ff80ee7350
commit
cbd50476f0
2 files changed
+9
-20
No files matched your search
+6
@@ -1,10 +1,16 @@
|
||||
package com.sap.sailing.gwt.ui.shared.eventlist;
|
||||
|
||||
import com.sap.sailing.gwt.ui.shared.general.EventMetadataDTO;
|
||||
import com.sap.sailing.gwt.ui.shared.general.EventState;
|
||||
import com.sap.sailing.gwt.ui.shared.start.StageEventType;
|
||||
|
||||
public class EventListEventDTO extends EventMetadataDTO {
|
||||
private String baseURL;
|
||||
private boolean isOnRemoteServer;
|
||||
|
||||
public StageEventType getStageType() {
|
||||
return getState() == EventState.RUNNING ? StageEventType.RUNNING : StageEventType.POPULAR;
|
||||
}
|
||||
|
||||
public String getBaseURL() {
|
||||
return baseURL;
|
||||
|
||||
+3
-20
@@ -1,30 +1,13 @@
|
||||
package com.sap.sailing.gwt.ui.shared.start;
|
||||
|
||||
import com.sap.sailing.gwt.ui.shared.general.EventMetadataDTO;
|
||||
import com.sap.sailing.gwt.ui.shared.eventlist.EventListEventDTO;
|
||||
|
||||
public class EventStageDTO extends EventMetadataDTO {
|
||||
public class EventStageDTO extends EventListEventDTO {
|
||||
|
||||
private StageEventType stageType;
|
||||
private String baseURL;
|
||||
private boolean isOnRemoteServer;
|
||||
private String stageImageURL;
|
||||
|
||||
public String getBaseURL() {
|
||||
return baseURL;
|
||||
}
|
||||
|
||||
public void setBaseURL(String baseURL) {
|
||||
this.baseURL = baseURL;
|
||||
}
|
||||
|
||||
public boolean isOnRemoteServer() {
|
||||
return isOnRemoteServer;
|
||||
}
|
||||
|
||||
public void setOnRemoteServer(boolean isOnRemoteServer) {
|
||||
this.isOnRemoteServer = isOnRemoteServer;
|
||||
}
|
||||
|
||||
@Override
|
||||
public StageEventType getStageType() {
|
||||
return stageType;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user