generated from kzi-nastava/dotnet-wpf-starter-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c699bc1
commit f9f4d6c
Showing
3 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
| ||
namespace LangLang.Core.Model | ||
{ | ||
public enum LanguageLevel | ||
{ | ||
Student, | ||
Tutor, | ||
Director | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} |