diff --git a/LangLang/Core/Model/Course.cs b/LangLang/Core/Model/Course.cs new file mode 100644 index 00000000..df643621 --- /dev/null +++ b/LangLang/Core/Model/Course.cs @@ -0,0 +1,80 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Xml.Linq; + +namespace LangLang.Core.Model +{ + class Course + { + // Attributes + private string language; + private LanguageLevel level; + private int numberOfWeeks; + private List days; + private bool online; + private int numberOfStudents; + private int maxStudents; + + // Properties + public string Language + { + get { return language; } + set { language = value; } + } + + public LanguageLevel Level + { + get { return level; } + set { level = value; } + } + + public int NumberOfWeeks + { + get { return numberOfWeeks; } + set { numberOfWeeks = value; } + } + public List Days + { + get { return days; } + set { days = value; } + } + + public bool Online + { + get { return online; } + set { online = value; } + } + + public int NumberOfStudents + { + get { return numberOfStudents; } + set { numberOfStudents = value; } + } + + public int MaxStudents + { + get { return maxStudents; } + set { maxStudents = value; } + } + + // Constructors + + public Course(string language, LanguageLevel level, int numberOfWeeks, List days, bool online, int numberOfStudents, int maxStudents) + { + Language = language; + Level = level; + NumberOfWeeks = numberOfWeeks; + Days = days; + Online = online; + NumberOfStudents = numberOfStudents; + MaxStudents = maxStudents; + } + + public Course() + { + } + } +} diff --git a/LangLang/Core/Model/LanguageLevel.cs b/LangLang/Core/Model/LanguageLevel.cs new file mode 100644 index 00000000..f7a17290 --- /dev/null +++ b/LangLang/Core/Model/LanguageLevel.cs @@ -0,0 +1,10 @@ + +namespace LangLang.Core.Model +{ + public enum LanguageLevel + { + Student, + Tutor, + Director + } +} diff --git a/LangLang/Core/Model/WeekDays.cs b/LangLang/Core/Model/WeekDays.cs new file mode 100644 index 00000000..a5f57f1c --- /dev/null +++ b/LangLang/Core/Model/WeekDays.cs @@ -0,0 +1,14 @@ + +namespace LangLang.Core.Model +{ + public enum WeekDays + { + Monday, + Tuesday, + Wednesday, + Thursday, + Friday, + Saturday, + Sunday + } +}