2020-09-21 16:30:42 -04:00
|
|
|
|
namespace SharedLibraryCore.Dtos.Meta.Responses
|
2020-08-17 22:21:11 -04:00
|
|
|
|
{
|
|
|
|
|
public class UpdatedAliasResponse : BaseMetaResponse
|
|
|
|
|
{
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public string IPAddress { get; set; } = "--";
|
|
|
|
|
|
|
|
|
|
public override bool Equals(object obj)
|
|
|
|
|
{
|
|
|
|
|
if (obj is UpdatedAliasResponse resp)
|
|
|
|
|
{
|
|
|
|
|
return resp.Name.StripColors() == Name.StripColors() && resp.IPAddress == IPAddress;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-21 16:30:42 -04:00
|
|
|
|
public override int GetHashCode() => $"{Name.StripColors()}{IPAddress}".GetStableHashCode();
|
2020-08-17 22:21:11 -04:00
|
|
|
|
}
|
|
|
|
|
}
|