Esempio n. 1
0
        //to be subclassed later
        public void GetTrainsFromSepta( )
        {
            SeptaAPI         sapi       = new SeptaAPI();
            List <Hashtable> trainslist = sapi.GetTrainArrivalDepartures(this.name.GetString());

            this.BuildStationTrains(trainslist);
        }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
        public static void Main(string[] args)
        {
            SeptaAPI septa = new SeptaAPI();

            septa.test();
        }