Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class PortBlockResultMessage : IMessage
- {
- [JsonIgnore]
- public MessageType Type => MessageType.PortBlockResult;
- public int Port { get; set; }
- public bool Result { get; set; }
- public PortBlockResultMessage(int port, bool result)
- {
- Port = port;
- Result = result;
- }
- //protected bool Equals(PortBlockResultMessage other)
- //{
- // return Port == other.Port && Result == other.Result;
- //}
- //public override bool Equals(object obj)
- //{
- // if (ReferenceEquals(null, obj)) return false;
- // if (ReferenceEquals(this, obj)) return true;
- // if (obj.GetType() != this.GetType()) return false;
- // return Equals((PortBlockResultMessage)obj);
- //}
- //public override int GetHashCode()
- //{
- // unchecked
- // {
- // return (Port * 397) ^ Result.GetHashCode();
- // }
- //}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment