update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user