Races lists - Temporary adjustements to RaceView action and DTO

This commit is contained in:
Benjamin Barth committed 2015-07-02 12:32:59 +02:00
1 parent 593f708612
commit d74245df75
2 files changed
+9

No files matched your search

@@ -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
@@ -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;
}