--- android/TrainInfo/src/dk/thoerup/traininfo/provider/DebugProvider.java 2010/09/14 14:13:49 1052 +++ android/TrainInfo/src/dk/thoerup/traininfo/provider/DebugProvider.java 2010/09/14 16:00:57 1053 @@ -9,7 +9,7 @@ import dk.thoerup.traininfo.StationBean; import dk.thoerup.traininfo.TimetableBean; -public class DebugProvider implements DepartureProvider, StationProvider, TimetableProvider { +public class DebugProvider implements DepartureProvider, StationProvider, TimetableProvider, MetroProvider { @Override @@ -79,6 +79,7 @@ station.setLatitude(52.0); station.setLongitude(11.0); station.setRegional(true); + station.setMetro(true); stations.add(station); return stations; @@ -137,4 +138,33 @@ } + @Override + public MetroBean lookupMetroInfo(int stationID) { + MetroBean metro = new MetroBean(); + + metro.operationInfo = "Metroen kører normalt og uden forsinkelser."; + metro.plan = "Dag-/aftendrift. Metroen kører hvert 3. minut mellem Vanløse og Christianshavn - og hvert 6. minut til og fra Vestamager og Lufthavnen."; + + MetroEntry ent = new MetroEntry(); + ent.metro = "M1M2"; + ent.destination = "Mod Vanløse"; + ent.minutes = "0,5 2 3"; + metro.entries.add(ent); + + ent = new MetroEntry(); + ent.metro = "M1"; + ent.destination = "Mod Vestamager"; + ent.minutes = "0,5 6"; + metro.entries.add(ent); + + ent = new MetroEntry(); + ent.metro = "M2"; + ent.destination = "Mod Lufthavnen"; + ent.minutes = "3"; + metro.entries.add(ent); + + return metro; + } + + }