Skip to content

Commit

Permalink
[Add] attribute and property createdByDirector to Course Class
Browse files Browse the repository at this point in the history
  • Loading branch information
darinkaloncar committed Apr 1, 2024
1 parent 8fe037c commit 5f78ecc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion LangLang/Core/Model/Course.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public class Course : ISerializable
private int _numberOfStudents;
private int _maxStudents;
private DateTime _startDateTime;
private bool _createdByDirector;

// Properties

Expand Down Expand Up @@ -83,10 +84,16 @@ public DateTime StartDateTime
set { _startDateTime = value; }
}

public bool CreatedByDirector
{
get { return _createdByDirector; }
set { _createdByDirector = value; }
}

// Constructors

public Course(int id, int tutorId, string language, LanguageLevel level, int numberOfWeeks, List<DayOfWeek> days,
bool online, int maxStudents, DateTime startDateTime)
bool online, int maxStudents, DateTime startDateTime, bool createdByDirector)
{
Id = id;
TutorId = tutorId;
Expand All @@ -98,6 +105,7 @@ public Course(int id, int tutorId, string language, LanguageLevel level, int num
NumberOfStudents = 0;
MaxStudents = maxStudents;
StartDateTime = startDateTime;
CreatedByDirector = createdByDirector;
}

public Course()
Expand Down

0 comments on commit 5f78ecc

Please sign in to comment.