Core changes
This commit is contained in:
@@ -9,32 +9,10 @@ namespace TimetableDesigner.Core
|
|||||||
[Serializable]
|
[Serializable]
|
||||||
public abstract class BaseGroup : Unit
|
public abstract class BaseGroup : Unit
|
||||||
{
|
{
|
||||||
#region FIELDS
|
|
||||||
|
|
||||||
private string _shortName;
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#region PROPERTIES
|
|
||||||
|
|
||||||
public string ShortName
|
|
||||||
{
|
|
||||||
get => _shortName;
|
|
||||||
set => _shortName = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#region CONSTRUCTORS
|
#region CONSTRUCTORS
|
||||||
|
|
||||||
public BaseGroup(ulong id) : base(id)
|
public BaseGroup(ulong id) : base(id)
|
||||||
{
|
{ }
|
||||||
_shortName = string.Empty;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ namespace TimetableDesigner.Core
|
|||||||
{
|
{
|
||||||
#region FIELDS
|
#region FIELDS
|
||||||
|
|
||||||
private string _shortName;
|
|
||||||
private string _description;
|
private string _description;
|
||||||
private bool _isCapacityLimited;
|
private bool _isCapacityLimited;
|
||||||
private uint _capacity;
|
private uint _capacity;
|
||||||
@@ -23,11 +22,6 @@ namespace TimetableDesigner.Core
|
|||||||
|
|
||||||
#region PROPERTIES
|
#region PROPERTIES
|
||||||
|
|
||||||
public string ShortName
|
|
||||||
{
|
|
||||||
get => _shortName;
|
|
||||||
set => _shortName = value;
|
|
||||||
}
|
|
||||||
public string Description
|
public string Description
|
||||||
{
|
{
|
||||||
get => _description;
|
get => _description;
|
||||||
@@ -52,7 +46,6 @@ namespace TimetableDesigner.Core
|
|||||||
|
|
||||||
public Classroom(ulong id) : base(id)
|
public Classroom(ulong id) : base(id)
|
||||||
{
|
{
|
||||||
_shortName = string.Empty;
|
|
||||||
_description = string.Empty;
|
_description = string.Empty;
|
||||||
_isCapacityLimited = false;
|
_isCapacityLimited = false;
|
||||||
_capacity = 1;
|
_capacity = 1;
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ namespace TimetableDesigner.Core
|
|||||||
{
|
{
|
||||||
#region FIELDS
|
#region FIELDS
|
||||||
|
|
||||||
private string _shortName;
|
|
||||||
private string _description;
|
private string _description;
|
||||||
private JsonSerializableDictionary<TimetableDay, TimetableSpanCollection> _availabilityHours;
|
private JsonSerializableDictionary<TimetableDay, TimetableSpanCollection> _availabilityHours;
|
||||||
|
|
||||||
@@ -22,11 +21,6 @@ namespace TimetableDesigner.Core
|
|||||||
|
|
||||||
#region PROPERTIES
|
#region PROPERTIES
|
||||||
|
|
||||||
public string ShortName
|
|
||||||
{
|
|
||||||
get => _shortName;
|
|
||||||
set => _shortName = value;
|
|
||||||
}
|
|
||||||
public string Description
|
public string Description
|
||||||
{
|
{
|
||||||
get => _description;
|
get => _description;
|
||||||
@@ -42,7 +36,6 @@ namespace TimetableDesigner.Core
|
|||||||
|
|
||||||
public Teacher(ulong id) : base(id)
|
public Teacher(ulong id) : base(id)
|
||||||
{
|
{
|
||||||
_shortName = string.Empty;
|
|
||||||
_description = string.Empty;
|
_description = string.Empty;
|
||||||
_availabilityHours = new JsonSerializableDictionary<TimetableDay, TimetableSpanCollection>();
|
_availabilityHours = new JsonSerializableDictionary<TimetableDay, TimetableSpanCollection>();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ namespace TimetableDesigner.Core
|
|||||||
private ulong _id;
|
private ulong _id;
|
||||||
private Guid _guid;
|
private Guid _guid;
|
||||||
private string _name;
|
private string _name;
|
||||||
|
private string _shortName;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@@ -29,6 +30,11 @@ namespace TimetableDesigner.Core
|
|||||||
get => _name;
|
get => _name;
|
||||||
set => _name = value;
|
set => _name = value;
|
||||||
}
|
}
|
||||||
|
public string ShortName
|
||||||
|
{
|
||||||
|
get => _shortName;
|
||||||
|
set => _shortName = value;
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@@ -41,6 +47,7 @@ namespace TimetableDesigner.Core
|
|||||||
_id = id;
|
_id = id;
|
||||||
_guid = Guid.NewGuid();
|
_guid = Guid.NewGuid();
|
||||||
_name = string.Empty;
|
_name = string.Empty;
|
||||||
|
_shortName = string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
Reference in New Issue
Block a user