using Core.Entities;

namespace Core.Calculation;

public class TeamScheduleTimeSlot
{
    public string Name { get; set; }
    public Team[] Teams;
    public Student[] UnscheduledStudents;
    public IEnumerable<Tuple<Student, IEnumerable<Team>>> StudentOverlaps;

    public bool StudentHasOverlaps(Student student)
    {
        return StudentOverlaps.FirstOrDefault(o => o.Item1.Equals(student)) != null;
    }
}