|
|
|
|
@ -241,7 +241,10 @@ public class TrainScheduleSector {
|
|
|
|
|
JSONArray locations = object.getJSONArray("schedule_location"); |
|
|
|
|
for(int i=0;i<locations.length();i++){ |
|
|
|
|
JSONObject location = locations.getJSONObject(i); |
|
|
|
|
tss.scheduleLocations.add(TrainScheduleLocation.parseJSON(location)); |
|
|
|
|
TrainScheduleLocation tsl = TrainScheduleLocation.parseJSON(location, i+1); |
|
|
|
|
tsl.setRecordSector(tss); |
|
|
|
|
|
|
|
|
|
tss.scheduleLocations.add(tsl); |
|
|
|
|
} |
|
|
|
|
return tss; |
|
|
|
|
} |
|
|
|
|
|