This commit is contained in:
2023-05-07 17:39:24 +02:00
Unverified
parent 6e34ed1ee7
commit 7fc6fc6229
112 changed files with 5182 additions and 1182 deletions

View File

@@ -3,16 +3,42 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TimetableDesigner.Customs;
namespace TimetableDesigner.Core
{
public class Teacher
[Serializable]
public class Teacher : IUnit
{
#region FIELDS
private string _name;
private string _shortName;
private string _description;
private JsonSerializableDictionary<TimetableDay, TimetableSpanCollection> _availabilityHours;
#endregion
#region PROPERTIES
public string Name { get; set; }
public string Description { get; set; }
public IDictionary<TimetableDay, TimetableSpanCollection> AvailabilityHours { get; set; }
public string Name
{
get => _name;
set => _name = value;
}
public string ShortName
{
get => _shortName;
set => _shortName = value;
}
public string Description
{
get => _description;
set => _description = value;
}
public IDictionary<TimetableDay, TimetableSpanCollection> AvailabilityHours => _availabilityHours;
#endregion
@@ -22,9 +48,10 @@ namespace TimetableDesigner.Core
public Teacher()
{
Name = string.Empty;
Description = string.Empty;
AvailabilityHours = new Dictionary<TimetableDay, TimetableSpanCollection>();
_name = string.Empty;
_shortName = string.Empty;
_description = string.Empty;
_availabilityHours = new JsonSerializableDictionary<TimetableDay, TimetableSpanCollection>();
}
#endregion