buddylistsetting.cs

来自「破解的飞信源代码」· CS 代码 · 共 59 行

CS
59
字号
namespace Imps.Client.Core
{
    using System;

    public class BuddyListSetting
    {
        private Imps.Client.Core.SystemSetting _systemSetting;

        internal BuddyListSetting(Imps.Client.Core.SystemSetting systemSetting)
        {
            this._systemSetting = systemSetting;
        }

        public int MaxBlackList
        {
            get
            {
                return this._systemSetting.GetPropertyValue<int>("max-blacklist");
            }
        }

        [ConfigCategory(ConfigCategory.System)]
        public int MaxBuddyNum
        {
            get
            {
                return this._systemSetting.GetPropertyValue<int>("max-buddies");
            }
        }

        [ConfigCategory(ConfigCategory.System)]
        public int MaxChatFriendNum
        {
            get
            {
                return this._systemSetting.GetPropertyValue<int>("max-chat-buddies");
            }
        }

        [ConfigCategory(ConfigCategory.System)]
        public int MaxGroupNum
        {
            get
            {
                return this._systemSetting.GetPropertyValue<int>("max-buddy-list");
            }
        }

        public int NewBuddyTextDays
        {
            get
            {
                return this._systemSetting.GetPropertyValue<int>("NewBuddyTextDays", 3);
            }
        }
    }
}

⌨️ 快捷键说明

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