mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-08 14:18:20 -05:00
23 lines
631 B
C#
23 lines
631 B
C#
namespace SharedLibraryCore.Dtos.Meta.Responses
|
|
{
|
|
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;
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return $"{Name.StripColors()}{IPAddress}".GetStableHashCode();
|
|
}
|
|
}
|
|
} |