using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TimetableDesigner.Core { [Serializable] public class Project { #region FIELDS private Guid _guid; private string _name; private string _author; private string _description; private TimetableTemplate _timetableTemplate; private HashSet _classrooms; private HashSet _teachers; private HashSet _groups; private HashSet _subgroups; private HashSet _classes; #endregion #region PROPERTIES public Guid Guid => _guid; public string Name { get => _name; set => _name = value; } public string Author { get => _author; set => _author = value; } public string Description { get => _description; set => _description = value; } public TimetableTemplate TimetableTemplate => _timetableTemplate; public ICollection Classrooms => _classrooms; public ICollection Teachers => _teachers; public ICollection Groups => _groups; public ICollection Subgroups => _subgroups; public ICollection Classes => _classes; #endregion #region CONSTRUCTORS public Project() { _guid = Guid.NewGuid(); _name = string.Empty; _author = string.Empty; _description = string.Empty; _timetableTemplate = new TimetableTemplate(); _classrooms = new HashSet(); _teachers = new HashSet(); _groups = new HashSet(); _subgroups = new HashSet(); _classes = new HashSet(); } #endregion } }