2023-03-12 12:32:26 +01:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Security.Cryptography.X509Certificates;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace TimetableDesigner.Core
|
|
|
|
|
|
{
|
2023-05-07 17:39:24 +02:00
|
|
|
|
[Serializable]
|
2023-05-28 17:43:48 +02:00
|
|
|
|
public class Classroom : 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 bool _isCapacityLimited;
|
|
|
|
|
|
private uint _capacity;
|
|
|
|
|
|
|
|
|
|
|
|
#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;
|
|
|
|
|
|
}
|
|
|
|
|
|
public bool IsCapacityLimited
|
|
|
|
|
|
{
|
|
|
|
|
|
get => _isCapacityLimited;
|
|
|
|
|
|
set => _isCapacityLimited = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
public uint Capacity
|
|
|
|
|
|
{
|
|
|
|
|
|
get => _capacity;
|
|
|
|
|
|
set => _capacity = value;
|
|
|
|
|
|
}
|
2023-03-12 12:32:26 +01:00
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region CONSTRUCTORS
|
|
|
|
|
|
|
2023-05-28 17:43:48 +02:00
|
|
|
|
public Classroom(ulong id) : base(id)
|
2023-03-12 12:32:26 +01:00
|
|
|
|
{
|
2023-05-07 17:39:24 +02:00
|
|
|
|
_shortName = string.Empty;
|
|
|
|
|
|
_description = string.Empty;
|
|
|
|
|
|
_isCapacityLimited = false;
|
|
|
|
|
|
_capacity = 1;
|
2023-03-12 12:32:26 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|