//to be subclassed later public void GetTrainsFromSepta( ) { SeptaAPI sapi = new SeptaAPI(); List <Hashtable> trainslist = sapi.GetTrainArrivalDepartures(this.name.GetString()); this.BuildStationTrains(trainslist); }
protected void LoadAllTrains() { // trains come from septa SeptaAPI sapi = new SeptaAPI(); List <Hashtable> trainlist = sapi.GetAllTrains(); foreach (Hashtable thash in trainlist) { Train t = new Train(thash); trains.Add(t.key.GetString(), t); } }
public static void Main(string[] args) { SeptaAPI septa = new SeptaAPI(); septa.test(); }