31 lines
784 B
C#
31 lines
784 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using static CMS_CORE_Library.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;
|
|
}
|
|
}
|
|
}
|