Skip to content

Commit

Permalink
[Add] languageSkills to Tutor
Browse files Browse the repository at this point in the history
Added hashmap to Tutor that represent his/her skillset (language : LanguageLevel)
  • Loading branch information
DusicaPesic committed Mar 28, 2024
1 parent 042b1ef commit a296690
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 a296690

Please sign in to comment.