mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-04 03:13:49 +00:00
renamed TracTrac-specific stuff accordingly
This commit is contained in:
1 parent
f2a93777ac
commit
6589894f16
10 files changed
+12
-11
No files matched your search
@@ -191,7 +191,7 @@ public class AdminApp extends Servlet {
|
||||
private void listRacesInEvent(HttpServletRequest req, HttpServletResponse resp) throws IOException, ParseException,
|
||||
org.json.simple.parser.ParseException, URISyntaxException {
|
||||
URL jsonURL = new URL(req.getParameter(PARAM_NAME_EVENT_JSON_URL));
|
||||
List<RaceRecord> raceRecords = getService().getRaceRecords(jsonURL).getB();
|
||||
List<RaceRecord> raceRecords = getService().getTracTracRaceRecords(jsonURL).getB();
|
||||
JSONArray result = new JSONArray();
|
||||
for (RaceRecord raceRecord : raceRecords) {
|
||||
JSONObject jsonRaceRecord = new JSONObject();
|
||||
|
||||
@@ -135,7 +135,8 @@ public interface RacingEventService {
|
||||
* calls to individually start tracking races of this event, rather than tracking <em>all</em> races in the event which
|
||||
* is hardly ever useful. The returned pair's first component is the event name.
|
||||
*/
|
||||
Pair<String, List<RaceRecord>> getRaceRecords(URL jsonURL) throws IOException, ParseException, org.json.simple.parser.ParseException, URISyntaxException;
|
||||
Pair<String, List<RaceRecord>> getTracTracRaceRecords(URL jsonURL) throws IOException, ParseException,
|
||||
org.json.simple.parser.ParseException, URISyntaxException;
|
||||
|
||||
boolean isRaceBeingTracked(RaceDefinition r);
|
||||
|
||||
|
||||
@@ -214,7 +214,7 @@ public class RacingEventServiceImpl implements RacingEventService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Pair<String, List<RaceRecord>> getRaceRecords(URL jsonURL) throws IOException, ParseException, org.json.simple.parser.ParseException, URISyntaxException {
|
||||
public Pair<String, List<RaceRecord>> getTracTracRaceRecords(URL jsonURL) throws IOException, ParseException, org.json.simple.parser.ParseException, URISyntaxException {
|
||||
JSONService jsonService = getDomainFactory().parseJSONURL(jsonURL);
|
||||
return new Pair<String, List<RaceRecord>>(jsonService.getEventName(), jsonService.getRaceRecords());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user