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