36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
namespace adas_core.Domain.Models.GroupedObservations;
|
|
|
|
public class Field
|
|
{
|
|
public string? Name { get; set; }
|
|
|
|
public int Last { get; set; } = 1;
|
|
|
|
public bool OnlyExpired { get; set; }
|
|
|
|
//public override bool Equals(object? obj)
|
|
//{
|
|
// // Verifica si el objeto pasado es nulo o no es del mismo tipo
|
|
// if (obj == null || GetType() != obj.GetType()) return false;
|
|
|
|
// // Convierte el objeto pasado al tipo Field
|
|
// var other = (Field)obj;
|
|
|
|
// // Compara las propiedades una por una, maneja el caso de valores nulos usando el operador de coalescencia nula (??)
|
|
// return Name == other.Name &&
|
|
// Last == other.Last &&
|
|
// OnlyExpired == other.OnlyExpired;
|
|
//}
|
|
|
|
//public override int GetHashCode()
|
|
//{
|
|
// unchecked
|
|
// {
|
|
// var hash = 17;
|
|
// hash = hash * 23 + (Name?.GetHashCode() ?? 0);
|
|
// hash = hash * 23 + Last.GetHashCode();
|
|
// hash = hash * 23 + OnlyExpired.GetHashCode();
|
|
// return hash;
|
|
// }
|
|
//}
|
|
} |