using System; using System.Collections.Generic; using System.Collections; using System.Collections.ObjectModel; using System.Threading.Tasks; namespace MCTGLib { /// /// A user is an entity with a name, a surname, mail, profilePict and a list of priority. /// This user can login with a Id and password /// public class User { #region Private Attributes private string Name; private string Surname; private string Mail; ///private ICollection _priorities = new List(); #endregion #region Public Properties /// /// User's Name /// private string picture; public string ProfilPict { get => picture; set { picture = value; if (picture == null) { picture = "PhotoParDefaut"; } } } #endregion #region Constructors /// /// Construtors of user. /// public User(string name, string surname, string mail, params Priority[] priorities ) { Name = name; Surname = surname; Mail = mail; ///_priorities = new List(priorities); } #endregion } }