conversationplace.cs

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

CS
109
字号
namespace Org.InteliIM.Applications.Messenger.Conversations
{
	/// <summary>
	/// Represents the network type of a conversation.
	/// </summary>
	public enum ConversationNetworkType
	{
		/// <summary>
		/// Internet.
		/// </summary>
		Internet,

		/// <summary>
		/// Local area network.
		/// </summary>
		LAN
	}

	/// <summary>
	///  Represents the place where a conversation happens.
	/// </summary>
	public class ConversationPlace
	{
		/// <summary>
		/// Default constructor.
		/// </summary>
		public ConversationPlace()
		{
		}

		private string name;

		/// <summary>
		/// Gets or sets the name.
		/// </summary>
		public string Name
		{
			get
			{
				if(this.name == null)
					this.name = "";
				
				return this.name;
			}
			set
			{
				this.name = value;
			}
		}

		private string description;

		/// <summary>
		/// Gets or sets the description.
		/// </summary>
		public string Description
		{
			get
			{
				if(this.description == null)
					this.description = "";
				
				return this.description;
			}
			set
			{
				this.description = value;
			}
		}

		private Scene scene;

		/// <summary>
		/// Gets or sets the scene.
		/// </summary>
		public Scene Scene
		{
			get
			{
				if(this.scene == null)
					this.scene = new Scene();
				
				return this.scene;
			}
			set
			{
				this.scene = value;
			}
		}

		private ConversationNetworkType networkType = ConversationNetworkType.LAN;

		/// <summary>
		/// Gets or sets the network type.
		/// </summary>
		public ConversationNetworkType NetworkType
		{
			get
			{
				return this.networkType;
			}
			set
			{
				this.networkType = value;
			}
		}
	}
}

⌨️ 快捷键说明

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