/[projects]/android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/RejseplanenFetcher.java
ViewVC logotype

Diff of /android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/RejseplanenFetcher.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 977 by torben, Mon Jun 14 19:56:46 2010 UTC revision 978 by torben, Sat Jul 10 10:53:44 2010 UTC
# Line 26  public class RejseplanenFetcher { Line 26  public class RejseplanenFetcher {
26                  return format.format( new Date() );                  return format.format( new Date() );
27          }          }
28                    
29          public List<DepartureBean> lookupDepartures(int stationcode, String type, boolean arrival) throws Exception {          public List<DepartureEntry> lookupDepartures(int stationcode, String type, boolean arrival) throws Exception {
30                                    
31                  List<DepartureBean> departureList = new ArrayList<DepartureBean>();                  List<DepartureEntry> departureList = new ArrayList<DepartureEntry>();
32                                    
33              final WebClient webClient = new WebClient( BrowserVersion.FIREFOX_3 );              final WebClient webClient = new WebClient( BrowserVersion.FIREFOX_3 );
34              webClient.getCookieManager().setCookiesEnabled( false );              webClient.getCookieManager().setCookiesEnabled( false );
# Line 64  public class RejseplanenFetcher { Line 64  public class RejseplanenFetcher {
64                                                                    
65                                                                    
66                                                                    
67                                  DepartureBean departure = new DepartureBean();                                  DepartureEntry departure = new DepartureEntry();
68                                                                    
69                                  String time = fields.get(0).asText();                                    String time = fields.get(0).asText();  
70                                  departure.setTime(time);                                  departure.setTime(time);

Legend:
Removed from v.977  
changed lines
  Added in v.978

  ViewVC Help
Powered by ViewVC 1.1.20