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 ); |
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); |