Examples of StopProblemReportBean


Examples of org.onebusaway.transit_data.model.problems.StopProblemReportBean

  private StopProblemReportBean getRecordAsBean(StopProblemReportRecord record) {

    AgencyAndId stopId = record.getStopId();

    StopProblemReportBean bean = new StopProblemReportBean();
    bean.setCode(record.getCode());
    bean.setId(record.getId());
    bean.setStatus(record.getStatus());
    bean.setStopId(AgencyAndIdLibrary.convertToString(stopId));
    bean.setTime(record.getTime());
    bean.setUserComment(record.getUserComment());

    if (record.getUserLat() != null)
      bean.setUserLat(record.getUserLat());
    if (record.getUserLon() != null)
      bean.setUserLon(record.getUserLon());
    if (record.getUserLocationAccuracy() != null)
      bean.setUserLocationAccuracy(record.getUserLocationAccuracy());

    if (stopId != null) {
      try {
        bean.setStop(_stopBeanService.getStopForId(stopId));
      } catch (NoSuchStopServiceException ex) {

      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.