From a2966903bbca681fb92e52e10fe5955dec0706ba Mon Sep 17 00:00:00 2001 From: DusicaPesic <130140285+DusicaPesic@users.noreply.github.com> Date: Fri, 29 Mar 2024 00:18:25 +0100 Subject: [PATCH] [Add] languageSkills to Tutor Added hashmap to Tutor that represent his/her skillset (language : LanguageLevel) --- LangLang/Core/Model/Tutor.cs | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/LangLang/Core/Model/Tutor.cs b/LangLang/Core/Model/Tutor.cs index c86ffc4d..512eb7e9 100644 --- a/LangLang/Core/Model/Tutor.cs +++ b/LangLang/Core/Model/Tutor.cs @@ -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 _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(); } - public Tutor(Profile profile) + public Tutor(Profile profile, Dictionary languageSkills) { - Profile = profile; + _profile = profile; + _languageSkills = languageSkills; + } + + //Getters and setters + public Profile Profile + { + get { return _profile; } + private set { _profile = value; } + } + public Dictionary LanguageSkills + { + get { return _languageSkills; } + private set { _languageSkills = value; } } /* public List GetCourses(ref Dictionary courses)