Guest User

Untitled

a guest
Jan 7th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. public class PortBlockResultMessage : IMessage
  2. {
  3. [JsonIgnore]
  4. public MessageType Type => MessageType.PortBlockResult;
  5. public int Port { get; set; }
  6. public bool Result { get; set; }
  7. public PortBlockResultMessage(int port, bool result)
  8. {
  9. Port = port;
  10. Result = result;
  11. }
  12.  
  13. //protected bool Equals(PortBlockResultMessage other)
  14. //{
  15. // return Port == other.Port && Result == other.Result;
  16. //}
  17.  
  18. //public override bool Equals(object obj)
  19. //{
  20. // if (ReferenceEquals(null, obj)) return false;
  21. // if (ReferenceEquals(this, obj)) return true;
  22. // if (obj.GetType() != this.GetType()) return false;
  23. // return Equals((PortBlockResultMessage)obj);
  24. //}
  25.  
  26. //public override int GetHashCode()
  27. //{
  28. // unchecked
  29. // {
  30. // return (Port * 397) ^ Result.GetHashCode();
  31. // }
  32. //}
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment