/[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 1034 by torben, Wed Sep 8 12:31:55 2010 UTC revision 1037 by torben, Sat Sep 11 07:43:09 2010 UTC
# Line 79  public class DepartureFetcher { Line 79  public class DepartureFetcher {
79                          departureBean.notifications.addAll(tempBean.notifications);                          departureBean.notifications.addAll(tempBean.notifications);
80                  }                                }              
81                                    
82                    if (departureBean.departureEntries.size() == 0) {
83                            logger.info("No departures found for station " + stationID);
84                    }
85                    
86                  Collections.sort( departureBean.departureEntries );                  Collections.sort( departureBean.departureEntries );
87    
88                                    
# Line 246  public class DepartureFetcher { Line 250  public class DepartureFetcher {
250                                  if (time.equals(""))                                  if (time.equals(""))
251                                          time = "0:00"; //Bane.dk bug work-around                                          time = "0:00"; //Bane.dk bug work-around
252                                  departure.setTime(time);                                  departure.setTime(time);
                                 logger.info("Time: " + time);// TODO: remove  
253                                                                    
254                                  int updated = extractUpdated( fields.get(1) );                                  int updated = extractUpdated( fields.get(1) );
255                                  departure.setUpdated(updated);                                  departure.setUpdated(updated);
                                 logger.info("Updated: " + updated);// TODO: remove  
256                                                                    
257                                  String trainNumber = fields.get(2).text();                                  String trainNumber = fields.get(2).text();
258                                  if (type.equalsIgnoreCase("S2")) //If it is S-train we need to extract the trainNumber                                  if (type.equalsIgnoreCase("S2")) //If it is S-train we need to extract the trainNumber
259                                          trainNumber = trainNumber + " " + extractTrainNumber(fields.get(2));                                          trainNumber = trainNumber + " " + extractTrainNumber(fields.get(2));
260                                  departure.setTrainNumber(trainNumber);                                  departure.setTrainNumber(trainNumber);
                                 logger.info("TrainNumber: " + trainNumber);// TODO: remove  
261                                                                    
262                                  String destination = fields.get(3).text();                                  String destination = fields.get(3).text();
263                                  departure.setDestination(destination);                                  departure.setDestination(destination);

Legend:
Removed from v.1034  
changed lines
  Added in v.1037

  ViewVC Help
Powered by ViewVC 1.1.20