roominfo.cs

来自「这个版本(InteliIM Open Kernel Release 2)是目前最」· CS 代码 · 共 108 行

CS
108
字号
namespace Org.InteliIM.Applications.Tourism.Lodgement
{
	/// <summary>
	/// Represents a room of a building.
	/// </summary>
	public class RoomInfo
	{
		/// <summary>
		/// Initializes a new instance of the Room class.
		/// </summary>
		public RoomInfo()
		{
			
		}
		
		private string id;
		
		/// <summary>
		/// Gets or sets the id.
		/// </summary>
		public string Id
		{
			get
			{
				return this.id;
			}
			set
			{
				this.id = value;
			}
		}
		
		private RoomState state = RoomState.Idle;
		
		/// <summary>
		/// Gets or sets the state.
		/// </summary>
		public RoomState State
		{
			get
			{
				return this.state;
			}
			set
			{
				this.state = value;
			}
		}
		
		private RoomType type = null;
		
		/// <summary>
		/// Gets or sets the type.
		/// </summary>
		public RoomType Type
		{
			get
			{
				if(this.type == null)
					this.type = new RoomType();
				
				return this.type;
			}
			set
			{
				this.type = value;
			}
		}	
		
		private int floor = 1;
		
		/// <summary>
		/// Gets or sets the floor.
		/// </summary>
		public int Floor
		{
			get
			{
				return this.floor;
			}
			set
			{
				this.floor = value;
			}
		}
		
		private string phone;
		
		/// <summary>
		/// Gets or sets the phone.
		/// </summary>
		public string Phone
		{
			get
			{
				if(this.phone == null)
					this.phone = "";
				
				return this.phone;
			}
			set
			{
				this.phone = value;
			}
		}
	}
}

⌨️ 快捷键说明

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