public int CompareTo(object obj) { if (obj is QueueUser) { return(JidUser.CompareTo((obj as QueueUser).JidUser)); } if (obj is Jid) { var jid = new Jid((obj as Jid).User, (obj as Jid).Server, null); return(JidUser.CompareTo(jid)); } return(JidUser.CompareTo(obj)); }
public bool Equals(QueueUser other) { return(JidUser.Equals(other.JidUser)); }
public override int GetHashCode() { return(JidUser != null ? JidUser.GetHashCode() : 0); }