📄 stranger.cs
字号:
namespace Imps.Client.Core
{
using Imps.Common;
using System;
using System.Xml;
public class Stranger : Contact
{
private bool _canDispose;
private IicUri _nextUri;
public Stranger(User owner, string uri) : base(owner, uri)
{
this._canDispose = true;
}
public Stranger(User owner, string uri, bool getInfo) : base(owner, uri, getInfo)
{
this._canDispose = true;
}
internal override void WriteContactSetInfoXml(XmlTextWriter writer)
{
}
public bool CanDispose
{
get
{
return this._canDispose;
}
set
{
this._canDispose = value;
}
}
public override bool CanSaveAndUseMyPortrait
{
get
{
return false;
}
}
internal override bool CanSubscribedPresence
{
get
{
return false;
}
}
public override string DisplayName
{
get
{
if (base.Uri.Raw == base.Owner.Uri.Raw)
{
return base.Owner.Nickname;
}
return this.PersonalInfo.DisplayName;
}
internal set
{
this.PersonalInfo.Name = this.PersonalInfo.Name.CloneWithUserSetValue(value, string.Empty);
this.PersonalInfo.UpdateDisplayName();
}
}
public bool IsFederationContact
{
get
{
return base.Uri.IsVodafoneUri;
}
}
internal IicUri NextUri
{
get
{
return this._nextUri;
}
set
{
this._nextUri = value;
}
}
public override ContactType Type
{
get
{
return ContactType.Stranger;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -