weatherinfo.cs

来自「该源代码用 C# 写成」· CS 代码 · 共 136 行

CS
136
字号
namespace Org.InteliIM.Activities.Weather
{
	/// <summary>
	/// 天气信息
	/// </summary>
	public class WeatherInfo
	{
		private string description;
		
		/// <summary>
		/// 描述
		/// </summary>
		public string Description
		{
			get
			{
				if(this.description == null)
					this.description = "";
				
				return this.description;
			}
			set
			{
				this.description = value;
			}
		}
		
		private int highTemperature = 0;
		
		/// <summary>
		/// 最高温度
		/// </summary>
		public int HighTemperature
		{
			get
			{
				return this.highTemperature;
			}
			set
			{
				this.highTemperature = value;
			}
		}
		
		private int lowTemperature = 0;
		
		/// <summary>
		/// 最低温度
		/// </summary>
		public int LowTemperature
		{
			get
			{
				return this.lowTemperature;
			}
			set
			{
				this.lowTemperature = value;
			}
		}
		
		private string windDirection;
		
		/// <summary>
		/// 风向
		/// </summary>
		public string WindDirection
		{
			get
			{
				if(this.windDirection == null)
					this.windDirection = "";
				
				return this.windDirection;
			}
			set
			{
				this.windDirection = value;
			}
		}
		
		private string windSpeed;
		
		/// <summary>
		/// 风力
		/// </summary>
		public string WindSpeed
		{
			get
			{
				if(this.windSpeed == null)
					this.windSpeed = "";
				
				return this.windSpeed;
			}
			set
			{
				this.windSpeed = value;
			}
		}
		
		private int humidity = 0;
		
		/// <summary>
		/// 湿度
		/// </summary>
		public int Humidity
		{
			get
			{
				return this.humidity;
			}
			set
			{
				this.humidity = value;
			}
		}
		
		private int visibility = 0;
		
		/// <summary>
		/// 能见度
		/// </summary>
		public int Visibility
		{
			get
			{
				return this.visibility;
			}
			set
			{
				this.visibility = value;
			}
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?