Files
TimetableDesigner/TimetableDesigner.Core/Teacher.cs

53 lines
1.2 KiB
C#
Raw Normal View History

2023-03-12 12:32:26 +01:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2023-05-07 17:39:24 +02:00
using TimetableDesigner.Customs;
2023-03-12 12:32:26 +01:00
namespace TimetableDesigner.Core
{
2023-05-07 17:39:24 +02:00
[Serializable]
2023-05-28 17:43:48 +02:00
public class Teacher : Unit
2023-03-12 12:32:26 +01:00
{
2023-05-07 17:39:24 +02:00
#region FIELDS
private string _shortName;
private string _description;
private JsonSerializableDictionary<TimetableDay, TimetableSpanCollection> _availabilityHours;
#endregion
2023-03-12 12:32:26 +01:00
#region PROPERTIES
2023-05-07 17:39:24 +02:00
public string ShortName
{
get => _shortName;
set => _shortName = value;
}
public string Description
{
get => _description;
set => _description = value;
}
2023-05-28 17:43:48 +02:00
public JsonSerializableDictionary<TimetableDay, TimetableSpanCollection> AvailabilityHours => _availabilityHours;
2023-03-12 17:52:17 +01:00
#endregion
#region CONSTRUCTORS
2023-05-28 17:43:48 +02:00
public Teacher(ulong id) : base(id)
2023-03-12 17:52:17 +01:00
{
2023-05-07 17:39:24 +02:00
_shortName = string.Empty;
_description = string.Empty;
_availabilityHours = new JsonSerializableDictionary<TimetableDay, TimetableSpanCollection>();
2023-03-12 17:52:17 +01:00
}
2023-03-12 12:32:26 +01:00
#endregion
}
}