diff --git a/LangLang/Core/Model/Profile.cs b/LangLang/Core/Model/Profile.cs new file mode 100644 index 00000000..ddf57ba6 --- /dev/null +++ b/LangLang/Core/Model/Profile.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace LangLang.Core.Model +{ + class Profile + { + // Attributes + private string name; + private string lastName; + private UserGender gender; + private DateTime dateOfBirth; + private string phoneNumber; + private string email; + private string password; + private UserType role; + + // Properties + public string Name + { + get { return name; } + set { name = value; } + } + + public string LastName + { + get { return lastName; } + set { lastName = value; } + } + + public UserGender Gender + { + get { return gender; } + set { gender = value; } + } + + public DateTime DateOfBirth + { + get { return dateOfBirth; } + set { dateOfBirth = value; } + } + + public string PhoneNumber + { + get { return phoneNumber; } + set { phoneNumber = value; } + } + + public string Email + { + get { return email; } + set { email = value; } + } + + public string Password + { + get { return password; } + set { password = value; } + } + + public UserType Role + { + get { return role; } + set { role = value; } + } + + // Constructor + public Profile(string name, string lastName, UserGender gender, DateTime dateOfBirth, string phoneNumber, string email, string password, UserType role) + { + Name = name; + LastName = lastName; + Gender = gender; + DateOfBirth = dateOfBirth; + PhoneNumber = phoneNumber; + Email = email; + Password = password; + Role = role; + } + + } +} diff --git a/LangLang/Core/Model/UserGender.cs b/LangLang/Core/Model/UserGender.cs new file mode 100644 index 00000000..0f74c2a3 --- /dev/null +++ b/LangLang/Core/Model/UserGender.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace LangLang.Core.Model +{ + public enum UserGender + { + Male, + Female + } +} diff --git a/LangLang/Core/Model/UserType.cs b/LangLang/Core/Model/UserType.cs new file mode 100644 index 00000000..0daa49da --- /dev/null +++ b/LangLang/Core/Model/UserType.cs @@ -0,0 +1,10 @@ + +namespace LangLang.Core.Model +{ + public enum UserType + { + Student, + Tutor, + Director + } +}