nonfederationcontact.cs

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

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

    public abstract class NonFederationContact : Contact
    {
        private string _crbtToBuddy;
        private string _crbtToMe;

        public NonFederationContact(User owner, string uri) : base(owner, uri)
        {
        }

        public NonFederationContact(User owner, string uri, bool getInfo) : base(owner, uri, getInfo)
        {
        }

        public string CrbtToBuddy
        {
            get
            {
                return this._crbtToBuddy;
            }
            set
            {
                this._crbtToBuddy = value;
            }
        }

        public string CrbtToMe
        {
            get
            {
                return this._crbtToMe;
            }
            set
            {
                this._crbtToMe = value;
            }
        }

        public override string DisplayName
        {
            get
            {
                return this.PersonalInfo.DisplayName;
            }
            internal set
            {
                this.PersonalInfo.Name = this.PersonalInfo.Name.CloneWithUserSetValue(value, string.Empty);
                this.PersonalInfo.UpdateDisplayName();
            }
        }

        public string MobileNo
        {
            get
            {
                return this.PersonalInfo.MobileNo;
            }
        }
    }
}

⌨️ 快捷键说明

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