📄 conversationplace.cs
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -