Ejemplo n.º 1
0
 /*
  * (non-Javadoc)
  *
  * @see nl.cybercompany.treinadvies.web.pages.application.business.ReisplannerService#planReis(nl.
  * cybercompany.treinadvies.domain.Station,
  * nl.cybercompany.treinadvies.web.pages.application.domain.Station)
  */
 @Override
 @Cacheable(cacheName = "reisadviesCache")
 public ReisAdvies planReis(ReisVraag reisVraag) throws NoResultException {
   return convert(
       nsApiClient.getReisAdvies(
           Station.createSimple(reisVraag.getVertrekStation()),
           Station.createSimple(reisVraag.getAankomstStation()),
           reisVraag.getTijd()),
       reisVraag);
 }
Ejemplo n.º 2
0
 @Override
 public StationList getStationList() {
   return nsApiClient.fetchStationsList();
 }