Search in sources :

Example 1 with PhoneArrivalsAndDeparturesModel

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;
}
Also used : StopsWithArrivalsAndDeparturesBean(org.onebusaway.transit_data.model.StopsWithArrivalsAndDeparturesBean) PhoneArrivalsAndDeparturesModel(org.onebusaway.twilio.impl.PhoneArrivalsAndDeparturesModel)

Aggregations

StopsWithArrivalsAndDeparturesBean (org.onebusaway.transit_data.model.StopsWithArrivalsAndDeparturesBean)1 PhoneArrivalsAndDeparturesModel (org.onebusaway.twilio.impl.PhoneArrivalsAndDeparturesModel)1