Files
cms_thermo_active/Thermo.Active.Model/DTOModels/DTORuntimeFunctionAccessModel.cs
T
2020-04-09 14:37:07 +02:00

30 lines
767 B
C#

namespace Thermo.Active.Model.DTOModels
{
public class DTORuntimeFunctionalityModel
{
public int Id { get; set; }
public string Name { get; set; }
public string Area { get; set; }
public bool Enabled { get; set; }
public override bool Equals(object obj)
{
// Object is not a DTORuntimeFunctionalityModel instance
if (!(obj is DTORuntimeFunctionalityModel item))
return false;
if (Id == item.Id && Enabled == item.Enabled) // Name Area don't change runtime
return true;
else
return false;
}
public override int GetHashCode()
{
return base.GetHashCode();
}
}
}