📄 presence.cs
字号:
}
base.InnerSetPropertyValue<string>("device-caps", value);
}
}
public List<string> DeviceCapsList
{
get
{
return this._deviceCapsList;
}
}
public string DeviceId
{
get
{
return base.InnerGetPropertyValue<string>("device-id");
}
internal set
{
base.InnerSetPropertyValue<string>("device-id", value);
}
}
internal AmigoImage Icon
{
get
{
return ImpsPresenceIconsEx.Instance[this.MainPresence, new ClientTypeCategory?(ClientTypeHelper.String2ClientTypeCategory(this.ClientType))];
}
}
public bool IsBusy
{
get
{
return (this.MainPresence == Imps.Common.MainPresence.Busy);
}
}
public bool IsCustomizedPresence
{
get
{
string presenceDesc = this.PresenceDesc;
if (presenceDesc != null)
{
return (presenceDesc.Length > 0);
}
return false;
}
}
public bool IsOffline
{
get
{
return (this.MainPresence == Imps.Common.MainPresence.Offline);
}
}
public bool IsOnline
{
get
{
if (this.MainPresence >= Imps.Common.MainPresence.Away)
{
return (this.MainPresence <= (Imps.Common.MainPresence.Invisible | Imps.Common.MainPresence.Away));
}
return false;
}
}
public bool IsSmsOffline
{
get
{
return (this.SmsStatus.OriginalValue > TimeSpan.Zero);
}
}
public bool IsSmsOnline
{
get
{
return (this.MainPresence == Imps.Common.MainPresence.SmsOnline);
}
}
public Imps.Common.MainPresence LastPresence
{
get
{
return (Imps.Common.MainPresence) this._lastValue;
}
}
public ProposedData<string> Listening
{
get
{
return base.InnerGetPropertyValue<ProposedData<string>>("listening");
}
internal set
{
base.InnerSetPropertyValue<ProposedData<string>>("listening", value);
}
}
public LocationPresence Location
{
get
{
return base.InnerGetPropertyValue<LocationPresence>("location");
}
internal set
{
base.InnerSetPropertyValue<LocationPresence>("location", value);
}
}
public virtual Imps.Common.MainPresence MainPresence
{
get
{
return (Imps.Common.MainPresence) this.Value;
}
}
public ProposedData<string> Meeting
{
get
{
return base.InnerGetPropertyValue<ProposedData<string>>("meeting");
}
internal set
{
base.InnerSetPropertyValue<ProposedData<string>>("meeting", value);
}
}
public Imps.Common.PhoneStatus PhoneStatus
{
get
{
return base.InnerGetPropertyValue<Imps.Common.PhoneStatus>("mobile-device-status");
}
set
{
base.InnerSetPropertyValue<Imps.Common.PhoneStatus>("mobile-device-status", value);
}
}
public string PresenceDesc
{
get
{
return base.InnerGetPropertyValue<string>("desc");
}
internal set
{
base.InnerSetPropertyValue<string>("desc", value);
}
}
internal virtual int RealValue
{
get
{
return this._realValue;
}
set
{
this._realValue = value;
this.UpdateValue();
}
}
public ProposedData<TimeSpan> SmsStatus
{
get
{
return base.InnerGetPropertyValue<ProposedData<TimeSpan>>("sms");
}
internal set
{
lock (this._syncObjSmsStatus)
{
TimeSpan originalValue = this.SmsStatus.OriginalValue;
TimeSpan span2 = value.OriginalValue;
base.InnerSetPropertyValue<ProposedData<TimeSpan>>("sms", value);
int num = base.InnerGetPropertyValue<int>("value");
if (((num == 0) && (span2 <= TimeSpan.Zero)) || ((num == 1) && (span2 > TimeSpan.Zero)))
{
this.UpdateValue();
}
if (span2 <= TimeSpan.Zero)
{
GlobalTimer.Unregister(new EventHandler(this.SetSmsOnline_Tick));
}
else if ((span2.Days < 30) && (originalValue <= TimeSpan.Zero))
{
this._smsTickCount = Environment.TickCount;
GlobalTimer.Register(new EventHandler(this.SetSmsOnline_Tick), 600);
}
}
}
}
public string Text
{
get
{
string presenceDesc = this.PresenceDesc;
if ((presenceDesc != null) && (presenceDesc.Length > 0))
{
return presenceDesc;
}
return MainPresenceHelper.MainPresence2Str(this.MainPresence);
}
internal set
{
this.PresenceDesc = value;
}
}
protected virtual int Value
{
get
{
return base.InnerGetPropertyValue<int>("value");
}
set
{
this._lastValue = this.Value;
base.InnerSetPropertyValue<int>("value", value);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -