Skip to content

Commit

Permalink
Merge pull request #15 from kzi-nastava/origin/feat/Course
Browse files Browse the repository at this point in the history
[Add] Course Class to Model
  • Loading branch information
DusicaPesic authored Mar 28, 2024
2 parents a83d6fb + f9f4d6c commit 042b1ef
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 042b1ef

Please sign in to comment.