/[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 829 by torben, Thu Jun 10 22:26:09 2010 UTC revision 860 by torben, Wed Jun 16 08:57:15 2010 UTC
# Line 97  public class DepartureFetcher { Line 97  public class DepartureFetcher {
97              HtmlPage page = (HtmlPage) breaker.invoke(wrapper);              HtmlPage page = (HtmlPage) breaker.invoke(wrapper);
98                            
99              String tableName = arrival == false ? "afgangtabel" : "ankomsttabel";              String tableName = arrival == false ? "afgangtabel" : "ankomsttabel";
               
             System.out.println(uri);  
             System.out.println(tableName);  
               
100              HtmlElement table = page.getElementById(tableName);              HtmlElement table = page.getElementById(tableName);
101                            
102              if (table != null) {              if (table != null) {
# Line 135  public class DepartureFetcher { Line 131  public class DepartureFetcher {
131                                  String location = fields.get(5).asText();                                  String location = fields.get(5).asText();
132                                  departure.setLocation(location);                                  departure.setLocation(location);
133                                                                    
134                                  String status = fields.get(6).asText();                                  String status = fields.get(6).asText().trim();
135                                  departure.setStatus(status);                                  departure.setStatus(status);
136                                                                    
137                                  String note = extractNote( fields.get(7) );                                  String note = extractNote( fields.get(7) );

Legend:
Removed from v.829  
changed lines
  Added in v.860

  ViewVC Help
Powered by ViewVC 1.1.20