/[projects]/android/TrainInfo/src/dk/thoerup/traininfo/provider/DebugProvider.java
ViewVC logotype

Diff of /android/TrainInfo/src/dk/thoerup/traininfo/provider/DebugProvider.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 981 by torben, Sat Jul 10 16:03:10 2010 UTC revision 1007 by torben, Tue Aug 3 06:12:10 2010 UTC
# Line 11  import dk.thoerup.traininfo.TimetableBea Line 11  import dk.thoerup.traininfo.TimetableBea
11    
12  public class DebugProvider implements DepartureProvider, StationProvider, TimetableProvider {  public class DebugProvider implements DepartureProvider, StationProvider, TimetableProvider {
13    
         @Override  
         public boolean lookupDepartures(int station, boolean arrival) {  
                 return true;  
         }        
14                    
15          @Override          @Override
16          public DepartureBean getDepartures(int station, boolean arrival) {          public DepartureBean lookupDepartures(int station, boolean arrival) {
17                  DepartureBean bean = new DepartureBean();                  DepartureBean bean = new DepartureBean();
18                                    
19                  DepartureEntry departure = new DepartureEntry();                  DepartureEntry departure = new DepartureEntry();
# Line 54  public class DebugProvider implements De Line 50  public class DebugProvider implements De
50                  return bean;                  return bean;
51          }          }
52    
53          @Override          
54          public List<StationBean> getStations() {          public List<StationBean> getStations() {
55                  List<StationBean> stations = new ArrayList<StationBean>();                  List<StationBean> stations = new ArrayList<StationBean>();
56                                    
# Line 89  public class DebugProvider implements De Line 85  public class DebugProvider implements De
85          }          }
86    
87          @Override          @Override
88          public boolean lookupStations(Location location) {          public List<StationBean> lookupStations(Location location) {
89                  return true;                  return getStations();
90          }          }
91                    
92          @Override          @Override
93          public boolean lookupStationsByName(String name) {          public List<StationBean> lookupStationsByName(String name) {
94                  return true;                  return getStations();
95          }          }
96                    
97                    
98    
99          @Override          @Override
100          public boolean lookupStationsByIds(String ids) {          public List<StationBean> lookupStationsByIds(String ids) {
101                  return true;                  return getStations();
102          }          }
103    
104          @Override          @Override
105          public List<TimetableBean> getTimetable(String type, String trainID) {          public List<TimetableBean> lookupTimetable(String type, String trainID) {
106                  List<TimetableBean> timetables = new ArrayList<TimetableBean>();                  List<TimetableBean> timetables = new ArrayList<TimetableBean>();
107                                    
108                  TimetableBean timetable = new TimetableBean();                  TimetableBean timetable = new TimetableBean();
# Line 140  public class DebugProvider implements De Line 136  public class DebugProvider implements De
136                  return timetables;                  return timetables;
137          }          }
138    
         @Override  
         public boolean lookupTimetable(String type, String trainID) {  
                 return true;  
         }  
139    
140  }  }

Legend:
Removed from v.981  
changed lines
  Added in v.1007

  ViewVC Help
Powered by ViewVC 1.1.20