Files
cms_thermo_active/Step.Model/DTOModels/DTOActiveProgramInfoModel.cs
T
Lucio Maranta adfafcabd4 Library refactor, divided model by type
Added read/update metadata to the cms client
2018-09-27 17:30:37 +02:00

26 lines
694 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)
{
var item = obj as DTOActiveProgramDataModel;
if (item == null)
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;
}
}
}