--- android/TrainInfo/src/dk/thoerup/traininfo/provider/DebugProvider.java 2009/10/10 11:30:08 433 +++ android/TrainInfo/src/dk/thoerup/traininfo/provider/DebugProvider.java 2010/06/11 14:05:24 835 @@ -12,12 +12,12 @@ public class DebugProvider implements DepartureProvider, StationProvider, TimetableProvider { @Override - public boolean lookupDepartures(int station) { + public boolean lookupDepartures(int station, boolean arrival) { return true; } @Override - public List getDepartures(int station) { + public List getDepartures(int station, boolean arrival) { List list = new ArrayList(); DepartureBean departure = new DepartureBean(); @@ -64,6 +64,7 @@ station.setId(1); station.setLatitude(56.0); station.setLongitude(10.0); + station.setRegional(true); stations.add(station); station = new StationBean(); @@ -71,7 +72,8 @@ station.setDistance(5300); station.setId(2); station.setLatitude(58.0); - station.setLongitude(10.0); + station.setLongitude(10.0); + station.setRegional(true); stations.add(station); station = new StationBean(); @@ -79,7 +81,8 @@ station.setDistance(15600); station.setId(3); station.setLatitude(52.0); - station.setLongitude(11.0); + station.setLongitude(11.0); + station.setRegional(true); stations.add(station); return stations; @@ -103,7 +106,7 @@ } @Override - public List getTimetable(String trainID) { + public List getTimetable(String type, String trainID) { List timetables = new ArrayList(); TimetableBean timetable = new TimetableBean(); @@ -138,7 +141,7 @@ } @Override - public boolean lookupTimetable(String trainID) { + public boolean lookupTimetable(String type, String trainID) { return true; }