Skip to content

Commit

Permalink
Merge pull request #20 from kzi-nastava/origin/feat/Tutor
Browse files Browse the repository at this point in the history
[Add] languageSkills to Tutor
  • Loading branch information
darinkaloncar authored Mar 28, 2024
2 parents 042b1ef + a296690 commit 1f4d725
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions LangLang/Core/Model/Tutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,33 @@ namespace LangLang.Core.Model
class Tutor
{
// Profile attribute of type Profile
private Profile Profile { get; set; }
private Profile _profile { get; set; }
private Dictionary<string, LanguageLevel> _languageSkills { get; set; }

// Constructor
public Tutor()
{
Profile = new Profile();
// Initialize empty profile and language skills
_profile = new Profile();
_profile.Role = UserType.Tutor;
_languageSkills = new Dictionary<string, LanguageLevel>();
}
public Tutor(Profile profile)
public Tutor(Profile profile, Dictionary<string, LanguageLevel> languageSkills)
{
Profile = profile;
_profile = profile;
_languageSkills = languageSkills;
}

//Getters and setters
public Profile Profile
{
get { return _profile; }
private set { _profile = value; }
}
public Dictionary<string, LanguageLevel> LanguageSkills
{
get { return _languageSkills; }
private set { _languageSkills = value; }
}
/*
public List<Course> GetCourses(ref Dictionary<int, Course> courses)
Expand Down

0 comments on commit 1f4d725

Please sign in to comment.