Exemple #1
0
 public List<Reading> historic(int id)
 {
     try
     {
         return CaBiData.GetGraphData(id);
     }
     catch
     {
         return new List<Reading>();
     }
 }
Exemple #2
0
 public HistoricReturn historicAll(int id, string dt)
 {
     try
     {
         DateTime x = Convert.ToDateTime(dt);
         return CaBiData.GetTimeData(id, x);
     }
     catch
     {
         return new HistoricReturn();
     }
 }
Exemple #3
0
    public void update()
    {
        try
        {
        XDocument feed = XDocument.Load("http://www.capitalbikeshare.com/stations/bikeStations.xml");
            List<Station> stationList = (from s in feed.Descendants("station")
                                         select new Station(s)).ToList<Station>();

            CaBiData.AddPullData(feed, stationList);
        }
        catch
        {}
    }