mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-27 14:27:15 +00:00
Races lists - Temporary adjustements to RaceView action and DTO
This commit is contained in:
1 parent
593f708612
commit
d74245df75
2 files changed
+9
No files matched your search
+5
@@ -8,16 +8,21 @@ import com.sap.sailing.gwt.ui.shared.dispatch.DispatchContext;
|
||||
import com.sap.sailing.gwt.ui.shared.dispatch.ResultWithTTL;
|
||||
|
||||
public class GetRaceListViewAction implements Action<ResultWithTTL<RaceListViewDTO>> {
|
||||
|
||||
private UUID eventId;
|
||||
|
||||
public GetRaceListViewAction() {
|
||||
}
|
||||
|
||||
public GetRaceListViewAction(UUID eventId) {
|
||||
this.eventId = eventId;
|
||||
}
|
||||
|
||||
@Override
|
||||
@GwtIncompatible
|
||||
public ResultWithTTL<RaceListViewDTO> execute(DispatchContext context) {
|
||||
final RaceListViewDTO result = new RaceListViewDTO();
|
||||
result.setLiveRaces(new GetLiveRacesForEventAction(eventId).execute(context).getDto());
|
||||
|
||||
// RacesActionUtil.forRacesOfEvent(context, eventId, new RaceCallback() {
|
||||
// @Override
|
||||
|
||||
+4
@@ -15,6 +15,10 @@ public class RaceListViewDTO implements DTO {
|
||||
// TODO implement based on race.getStart();
|
||||
}
|
||||
|
||||
public void setLiveRaces(LiveRacesDTO liveRaces) {
|
||||
this.liveRaces = liveRaces;
|
||||
}
|
||||
|
||||
public LiveRacesDTO getLiveRaces() {
|
||||
return liveRaces;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user