📄 hintssetting.cs
字号:
namespace Imps.Client.Core
{
using System;
using System.Text;
public class HintsSetting
{
private Imps.Client.Core.SystemSetting _systemSetting;
internal HintsSetting(Imps.Client.Core.SystemSetting systemSetting)
{
this._systemSetting = systemSetting;
}
public override string ToString()
{
StringBuilder builder = new StringBuilder();
builder.Append(string.Format("<{0} version=\"{1}\">", "hints", this._systemSetting.HintsVerion));
builder.Append(string.Format("<{0}><![CDATA[{1}]]></{0}>", "user-busy", this.UserBusy));
builder.Append(string.Format("<{0}><![CDATA[{1}]]></{0}>", "user-sms-status", this.UserSms));
builder.Append(string.Format("<{0}><![CDATA[{1}]]></{0}>", "user-offline", this.UserOffline));
builder.Append(string.Format("<{0}><![CDATA[{1}]]></{0}>", "participants-not-online", this.ParticipantsNotOnline));
builder.Append(string.Format("<{0}><![CDATA[{1}]]></{0}>", "user-in-blacklist", this.UserInBlacklist));
builder.Append(string.Format("<{0}><![CDATA[{1}]]></{0}>", "i-not-log-on", this.INotLogOn));
builder.Append(string.Format("<{0}><![CDATA[{1}]]></{0}>", "i-not-online", this.INotOnline));
builder.Append("</hints>");
return builder.ToString();
}
public string INotLogOn
{
get
{
return this._systemSetting.GetPropertyValue<string>("i-not-log-on");
}
}
public string INotOnline
{
get
{
return this._systemSetting.GetPropertyValue<string>("i-not-online");
}
}
public string ParticipantsNotOnline
{
get
{
return this._systemSetting.GetPropertyValue<string>("participants-not-online");
}
}
[ConfigCategory(ConfigCategory.System)]
public string UserBusy
{
get
{
return this._systemSetting.GetPropertyValue<string>("user-busy");
}
}
public string UserInBlacklist
{
get
{
return this._systemSetting.GetPropertyValue<string>("user-in-blacklist");
}
}
[ConfigCategory(ConfigCategory.System)]
public string UserOffline
{
get
{
return this._systemSetting.GetPropertyValue<string>("user-offline");
}
}
[ConfigCategory(ConfigCategory.System)]
public string UserSms
{
get
{
return this._systemSetting.GetPropertyValue<string>("user-sms-status");
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -