use of org.onebusaway.twilio.impl.PhoneArrivalsAndDeparturesModel in project onebusaway-application-modules by camsys.
the class ArrivalsAndDeparturesAction method displayData.
private String displayData() {
PhoneArrivalsAndDeparturesModel model = (PhoneArrivalsAndDeparturesModel) sessionMap.get("_model");
StopsWithArrivalsAndDeparturesBean result = model.getResult();
buildPredictedArrivals(result.getArrivalsAndDepartures(), result.getStops());
setNextAction("stops/arrivals-and-departures");
_log.debug("setting navState, have stopIds=" + model.getStopIds());
sessionMap.put("navState", new Integer(DO_ROUTING));
sessionMap.put("stopIds", model.getStopIds());
sessionMap.put("stops", result.getStops());
return SUCCESS;
}
Aggregations