2023-03-12 12:32:26 +01:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace TimetableDesigner.Core
|
|
|
|
|
|
{
|
2023-05-07 17:39:24 +02:00
|
|
|
|
[Serializable]
|
|
|
|
|
|
public class Group : BaseGroup
|
2023-03-12 12:32:26 +01:00
|
|
|
|
{
|
2023-05-07 17:39:24 +02:00
|
|
|
|
#region FIELDS
|
|
|
|
|
|
|
|
|
|
|
|
private string _description;
|
|
|
|
|
|
private HashSet<Subgroup> _assignedSubgroups;
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-12 12:32:26 +01:00
|
|
|
|
#region PROPERTIES
|
|
|
|
|
|
|
2023-05-07 17:39:24 +02:00
|
|
|
|
public string Description
|
|
|
|
|
|
{
|
|
|
|
|
|
get => _description;
|
|
|
|
|
|
set => _description = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
public ICollection<Subgroup> AssignedSubgroups => _assignedSubgroups;
|
2023-03-12 12:32:26 +01:00
|
|
|
|
|
|
|
|
|
|
#endregion
|
2023-03-26 23:01:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region CONSTRUCTORS
|
|
|
|
|
|
|
2023-05-28 17:43:48 +02:00
|
|
|
|
public Group(ulong id) : base(id)
|
2023-03-26 23:01:58 +02:00
|
|
|
|
{
|
2023-05-07 17:39:24 +02:00
|
|
|
|
_description = string.Empty;
|
|
|
|
|
|
_assignedSubgroups = new HashSet<Subgroup>();
|
2023-03-26 23:01:58 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
2023-03-12 12:32:26 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|