Beispiel #1
0
 public SleepTime(SleepTime sleepTime)
 {
     this.StartSleep    = sleepTime.StartSleep;
     this.EndSleep      = sleepTime.EndSleep;
     this.AmountOfSleep = this.EndSleep - this.StartSleep;
     this.DayOfWeek     = this.StartSleep.DayOfWeek;
 }
Beispiel #2
0
 public Sleep(SleepTime sleepTime, string note)
 {
     this.SleepTime = new SleepTime(sleepTime);
     this.Note      = note;
 }