Skip to content

Commit

Permalink
[Add] Course Class to Model
Browse files Browse the repository at this point in the history
  • Loading branch information
darinkaloncar committed Mar 28, 2024
1 parent c699bc1 commit f9f4d6c
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 0 deletions.
80 changes: 80 additions & 0 deletions LangLang/Core/Model/Course.cs
Original file line number Diff line number Diff line change
@@ -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<WeekDays> 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<WeekDays> 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<WeekDays> days, bool online, int numberOfStudents, int maxStudents)
{
Language = language;
Level = level;
NumberOfWeeks = numberOfWeeks;
Days = days;
Online = online;
NumberOfStudents = numberOfStudents;
MaxStudents = maxStudents;
}

public Course()
{
}
}
}
10 changes: 10 additions & 0 deletions LangLang/Core/Model/LanguageLevel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

namespace LangLang.Core.Model
{
public enum LanguageLevel
{
Student,
Tutor,
Director
}
}
14 changes: 14 additions & 0 deletions LangLang/Core/Model/WeekDays.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

namespace LangLang.Core.Model
{
public enum WeekDays
{
Monday,
Tuesday,
Wednesday,
Thursday,
Friday,
Saturday,
Sunday
}
}

0 comments on commit f9f4d6c

Please sign in to comment.