/// <summary> Equality checker for global date/time filters. </summary> /// <param name="other">The filter to evaluate.</param> /// <returns>True if they match. The USE property is not evaluated.</returns> public bool Equals(ScoringFilter other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(other.Type, Type) && Equals(other.Name, Name) && other.StartTime.Equals(StartTime) && other.StopTime.Equals(StopTime) && other.DayOfTheWeek == DayOfTheWeek && other.SpecificDate.Equals(SpecificDate)); }
/// <summary> Copy constructor for a ScoringFilter. </summary> /// <param name="sf">The filter you want to duplicate.</param> public ScoringFilter(ScoringFilter sf) { Type = sf.Type; Name = sf.Name; Use = sf.Use; StartTime = sf.StartTime; StopTime = sf.StopTime; DayOfTheWeek = sf.DayOfTheWeek; DayRangeEnd = sf.DayRangeEnd; DayRangeStart = sf.DayRangeStart; SpecificDate = sf.SpecificDate; DateRangeStart = sf.DateRangeStart; DateRangeEnd = sf.DateRangeEnd; }