From 21f1e95fb8e935134a969bc3d729964d8d2aadfa Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Thu, 14 May 2020 23:06:10 -0400 Subject: rename Irc to IRC --- IRCStates/ChannelUser.cs | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 IRCStates/ChannelUser.cs (limited to 'IRCStates/ChannelUser.cs') diff --git a/IRCStates/ChannelUser.cs b/IRCStates/ChannelUser.cs new file mode 100644 index 0000000..8c2298b --- /dev/null +++ b/IRCStates/ChannelUser.cs @@ -0,0 +1,32 @@ +using System.Collections.Generic; + +namespace IRCStates +{ + public class ChannelUser + { + public ChannelUser() + { + Modes = new List(); + } + + public List Modes { get; set; } + + protected 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; + if (obj.GetType() != GetType()) return false; + return Equals((ChannelUser) obj); + } + + public override int GetHashCode() + { + return Modes != null ? Modes.GetHashCode() : 0; + } + } +} -- cgit 1.4.1