コード例 #1
0
        public string GetWeatherRow(WeatherData wd, int userRow)
        {
            StringBuilder rowData = new StringBuilder();

            return(rowData.Append(wd.GetWeatherRow(userRow)).ToString());
        }
コード例 #2
0
 public void DisplayWeatherRow(WeatherData wd, int userRow)
 {
     Console.WriteLine(wd.GetWeatherRow(userRow));
 }
コード例 #3
0
 public void GetWeatherRowWithHeader(WeatherData wd, int userRow)
 {
     Console.WriteLine(wd.GetWeatherRow(0));
     Console.WriteLine(wd.GetWeatherRow(userRow));
 }
コード例 #4
0
 public void DisplayWeatherPoint(WeatherData wd, int userRow, int userColumn)
 {
     Console.WriteLine(wd.GetWeatherPoint(userRow, userColumn));
 }
コード例 #5
0
 public string GetWeatherPoint(WeatherData wd, int userRow, int userColumn)
 {
     return(wd.GetWeatherPoint(userRow, userColumn));
 }
コード例 #6
0
 private string getWeatherURL(WeatherData wd)
 {
     return(@"http://api.wunderground.com/history/airport/" + wd.GetIcao() + "/" + wd.GetDate() + "/DailyHistory.html?reqdb.zip=" + wd.GetZip());
 }