static void Main() { LuasApi api = new LuasApi(); var s = api.GetStation("ABB"); //Console.WriteLine(JsonConvert.SerializeObject(api.GetAllStations())); //Console.WriteLine(); Console.WriteLine(JsonConvert.SerializeObject(api.GetForecast(s))); }
public long Forecast(string station) { Stopwatch.Restart(); StationForecast sf = Api.GetForecast(station); Stopwatch.Stop(); Console.WriteLine($"{station}: {sf.InboundTrams[0].Minutes} ({Stopwatch.ElapsedMilliseconds})"); return(Stopwatch.ElapsedMilliseconds); }