public FreeSlotsToLesson(List <TimeSlot> slots, Lesson lesson, List <FreeSlotsInRoomToLesson> roomSlots) : this(slots, lesson) { this.roomSlots = roomSlots; this.slots = getTheSameSlots(slots, getSlotsFromSlotsLists(roomSlots)); }
public void removeLesson(Lesson lesson) { lessons.Remove(lesson); }
public bool isDifferent(Lesson lesson) { return(!this.subject.Equals(lesson.getSubject())); }
public void addLesson(Lesson lesson) { lessons.Add(lesson); }
public Boolean Equals(Lesson lesson) { return(this.subject.Equals(lesson.subject) && this.group.Equals(lesson.group) && this.teacher.Equals(lesson.teacher) && this.amount.Equals(lesson.amount) && this.size.Equals(lesson.size)); }