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

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

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

revision 349 by torben, Mon Sep 28 19:14:18 2009 UTC revision 386 by torben, Fri Oct 2 13:44:31 2009 UTC
# Line 63  public class DepartureFetcher { Line 63  public class DepartureFetcher {
63                  List<DepartureBean> departureList = new ArrayList<DepartureBean>();                  List<DepartureBean> departureList = new ArrayList<DepartureBean>();
64                                    
65              final WebClient webClient = new WebClient();              final WebClient webClient = new WebClient();
66              webClient.setTimeout(1000);              webClient.setTimeout(2500);
67              webClient.setJavaScriptEnabled(false);              webClient.setJavaScriptEnabled(false);
68                                                            
69                            
# Line 82  public class DepartureFetcher { Line 82  public class DepartureFetcher {
82                                  DepartureBean departure = new DepartureBean();                                  DepartureBean departure = new DepartureBean();
83                                                                    
84                                  String time = fields.get(0).asText();                                  String time = fields.get(0).asText();
85                                    if (time.equals(""))
86                                            time = "0:00"; //Bane.dk bug work-around
87                                  departure.setTime(time);                                  departure.setTime(time);
88                                                                    
89                                  int updated = extractUpdated( fields.get(1) );                                  int updated = extractUpdated( fields.get(1) );

Legend:
Removed from v.349  
changed lines
  Added in v.386

  ViewVC Help
Powered by ViewVC 1.1.20