Files
cms_thermo_active/Step.Model/DTOModels/DTORuntimeFunctionAccessModel.cs
T
Lucio Maranta a5d919e159 Optimized signalR messaging ( send messages only when there are changes )
Added broadcast method to send data to new clients
2018-02-20 11:32:25 +01:00

31 lines
787 B
C#

namespace Step.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)
{
var item = obj as DTORuntimeFunctionalityModel;
// Object is not a DTORuntimeFunctionalityModel instance
if (item == null)
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();
}
}
}