using System; namespace StrixMusic.Helpers.TimeSpanRules { /// /// A rule for if it's a certain day of the week. /// public class WeeklyRule : ITimeSpanRule { private DayOfWeek _day; /// /// Initializes a new instance of the class. /// /// The day of the week. public WeeklyRule(DayOfWeek day) { _day = day; } /// public bool IsNow(DateTime now) { return now.DayOfWeek == _day; } } }