📄 compositepresence.cs
字号:
namespace Imps.Client.Resource
{
using Imps.Common;
using System;
public class CompositePresence
{
private Imps.Common.ClientTypeCategory? _ct;
private Imps.Common.MainPresence _mp;
public CompositePresence(Imps.Common.MainPresence mp, Imps.Common.ClientTypeCategory? ct)
{
this._mp = mp;
this._ct = ct;
}
public override bool Equals(object obj)
{
CompositePresence presence = obj as CompositePresence;
if (presence == null)
{
return false;
}
Imps.Common.ClientTypeCategory? clientTypeCategory = presence.ClientTypeCategory;
Imps.Common.ClientTypeCategory? nullable2 = this.ClientTypeCategory;
return (((clientTypeCategory.GetValueOrDefault() == nullable2.GetValueOrDefault()) && (clientTypeCategory.get_HasValue() == nullable2.get_HasValue())) && (presence.MainPresence == this.MainPresence));
}
public override int GetHashCode()
{
if (this._ct.get_HasValue())
{
return (int) (((Imps.Common.MainPresence) this._ct.get_Value()) + this._mp);
}
return (((int) this._mp) + 0x2710);
}
public Imps.Common.ClientTypeCategory? ClientTypeCategory
{
get
{
return this._ct;
}
}
public Imps.Common.MainPresence MainPresence
{
get
{
return this._mp;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -