Files
cms_thermo_active/Step.Model/DTOModels/DTOActiveProgramInfoModel.cs
T
Lucio Maranta f30403560c Added user deletion
Refactored project warnings
2019-04-05 11:20:56 +02:00

36 lines
911 B
C#

using System.Linq;
using static CMS_CORE_Library.Models.DataStructures;
namespace Step.Model.DTOModels
{
public class DTOActiveProgramDataModel : ActiveProgramDataModel
{
public override bool Equals(object obj)
{
if (!(obj is DTOActiveProgramDataModel item))
return false;
if (Path != item.Path)
return false;
if (IsoLines != null && item.IsoLines != null)
if (!IsoLines.SequenceEqual(item.IsoLines))
return false;
if (TimeLeft != item.TimeLeft)
return false;
return true;
}
public override int GetHashCode()
{
return base.GetHashCode();
}
}
public class DTOActiveImageAndNameDataModel
{
public string Image { get; set; }
public string Name { get; set; }
}
}