Beispiel #1
0
 public abstract string GetState(RegularTime time);
Beispiel #2
0
        public override string GetState(RegularTime time)
        {
            var lampsOn = time.Hours % 5;

            return(CalculateLamps(lampsOn));
        }
Beispiel #3
0
        public override string GetState(RegularTime time)
        {
            var lampsOn = time.Seconds % 2 == 0 ? 1 : 0;

            return(CalculateLamps(lampsOn));
        }