hintssetting.cs
来自「破解的飞信源代码」· CS 代码 · 共 91 行
CS
91 行
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 + =
减小字号Ctrl + -
显示快捷键?