IEPTrack/classes.cs

58 lines
1.3 KiB
C#
Raw Normal View History

2021-08-15 00:36:51 +00:00
public class Student
2021-08-15 00:20:44 +00:00
{
public Guid Id { get; set; }
2021-08-15 00:22:07 +00:00
public string FirstName { get; set; }
public string LastName { get; set; }
public DateTime Created { get; set; } = DateTime.Now;
2021-08-15 01:40:59 +00:00
public IColletion<Objective> Objectives { get; set; }
public ICollection<Goal> Goals { get; set; }
2021-08-15 00:36:51 +00:00
}
public class Goal
{
public Guid Id { get; set; }
public string Name { get; set; }
public DateTime Created { get; set; }
public DateTime? Started { get; set; }
}
public class Objective
{
public Guid Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
2021-08-15 01:40:59 +00:00
public DateTime Target { get; set; }
public Student Student { get; set; }
2021-08-15 11:05:25 +00:00
public ICollection<Event> Events { get; set; }
public ObjectiveType Type { get; set; }
2021-08-15 01:40:59 +00:00
}
2021-08-15 11:05:25 +00:00
public abstract class Event
2021-08-15 01:40:59 +00:00
{
public Guid Id { get; set; }
2021-08-15 11:05:25 +00:00
public DateTime StartDate { get; set; }
public DateTime? EndDate { get; set; }
2021-08-15 01:40:59 +00:00
public Objective Objective { get; set; }
}
2021-08-15 11:05:25 +00:00
public class YesNoEvent : Event
{
public bool Occurred { get; set; }
}
public class FrequencyEvent : Event
{
public int Instances { get; set; }
}
public enum ObjectiveType
2021-08-15 01:40:59 +00:00
{
[Description("Yes/No")]
YesNo = 0,
Percent = 1,
2021-08-15 02:11:33 +00:00
[Desciption("Frequency of behavior")]
Frequency = 2
2021-08-15 00:20:44 +00:00
}