27 lines
683 B
C#
27 lines
683 B
C#
using System.Collections.Generic;
|
|
|
|
namespace IRCStates
|
|
{
|
|
public class ChannelUser
|
|
{
|
|
public List<string> Modes { get; } = new List<string>();
|
|
|
|
private bool Equals(ChannelUser other)
|
|
{
|
|
return other != null && Equals(Modes, other.Modes);
|
|
}
|
|
|
|
public override bool Equals(object obj)
|
|
{
|
|
if (ReferenceEquals(null, obj)) return false;
|
|
if (ReferenceEquals(this, obj)) return true;
|
|
return obj.GetType() == GetType() && Equals((ChannelUser) obj);
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return Modes != null ? Modes.GetHashCode() : 0;
|
|
}
|
|
}
|
|
}
|