using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Thermo.Active.Model.Constants;
namespace Thermo.Active.Model.DTOModels.ThSchedulModels
{
public class DTOSchedTaskModels
{
///
/// Day of start
///
public TACT_DOW day { get; set; } = TACT_DOW.Monday;
///
/// Description
///
public string description { get; set; } = "";
///
/// State of task (enabled/disabled)
///
public bool enabled { get; set; } = false;
///
/// Repetition period
///
public TACT_SCHED_PERIOD period { get; set; } = TACT_SCHED_PERIOD.DAY;
///
/// Associated SoftKey ID
///
public int sKeyID { get; set; } = 0;
///
/// Status Word
///
public int statusCode { get; set; } = 0;
///
/// Datetime trigger (TIME only)
///
public TimeSpan time { get; set; }
///
/// Type of TASK
///
public TACT_SCHED_TASK type { get; set; } = TACT_SCHED_TASK.PRE_HEAT;
public override bool Equals(object obj)
{
// Object is not a GaugeModel instance
if (!(obj is DTOSchedTaskModels item))
return false;
if (day != item.day)
return false;
if (description != item.description)
return false;
if (enabled != item.enabled)
return false;
if (period != item.period)
return false;
if (sKeyID != item.sKeyID)
return false;
if (statusCode != item.statusCode)
return false;
if (time != item.time)
return false;
if (type!= item.type)
return false;
return true;
}
public override int GetHashCode()
{
return base.GetHashCode();
}
}
}