using Core; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LiMan.DB { public class SelectNext : SelectData { #region Public Properties public string ApplicazioneSel { get; set; } = ""; public string InstallazioneSel { get; set; } = ""; public bool OnlyActive { get; set; } = false; #endregion Public Properties #region Public Methods /// /// Inizializzazione con periodo e arrotondamento /// /// /// /// public static new SelectNext Init(int minRound, int numDayPrev) { var selD = SelectData.Init(minRound, numDayPrev); return new SelectNext() { DateStart = selD.DateStart, DateEnd = selD.DateEnd }; } public override bool Equals(object obj) { if (!(obj is SelectNext item)) return false; if (OnlyActive != item.OnlyActive) return false; if (ApplicazioneSel != item.ApplicazioneSel) return false; if (InstallazioneSel != item.InstallazioneSel) return false; return ((SelectData)this).Equals((SelectData)obj); } public override int GetHashCode() { return base.GetHashCode(); } #endregion Public Methods } }