WeatherForecast.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. #region 描述
  2. //-----------------------------------------------------------------------------
  3. // 文 件 名: WeatherForecast
  4. // 作 者:ChinaYi
  5. // 创建时间:2014/6/12 15:55:15
  6. // 描 述:用作封装天气
  7. // 版 本:4.0.30319.1022
  8. //-----------------------------------------------------------------------------
  9. // 历史更新纪录
  10. //-----------------------------------------------------------------------------
  11. // 版 本: 修改时间: 修改人:
  12. // 修改内容:
  13. //-----------------------------------------------------------------------------
  14. // Copyright (C) 20013-2014 泛美商务
  15. //-----------------------------------------------------------------------------
  16. #endregion
  17. using System;
  18. using System.Collections.Generic;
  19. using System.Linq;
  20. using System.Text;
  21. namespace Models
  22. {
  23. public class WeatherForecast
  24. {
  25. private string currentCity; //城市名称
  26. public string CurrentCity
  27. {
  28. get { return currentCity; }
  29. set { currentCity = value; }
  30. }
  31. private string date; //天气预报时间
  32. public string Date
  33. {
  34. get { return date; }
  35. set { date = value; }
  36. }
  37. private string dayPictureUrl; //白天天气图片
  38. public string DayPictureUrl
  39. {
  40. get { return dayPictureUrl; }
  41. set { dayPictureUrl = value; }
  42. }
  43. private string nightPictureUrl; //晚上天气图片
  44. public string NightPictureUrl
  45. {
  46. get { return nightPictureUrl; }
  47. set { nightPictureUrl = value; }
  48. }
  49. private string weather; //天气状况
  50. public string Weather
  51. {
  52. get { return weather; }
  53. set { weather = value; }
  54. }
  55. private string wind; //风力
  56. public string Wind
  57. {
  58. get { return wind; }
  59. set { wind = value; }
  60. }
  61. private string temperature; //温度
  62. public string Temperature
  63. {
  64. get { return temperature; }
  65. set { temperature = value; }
  66. }
  67. }
  68. }