Files
TimetableDesigner/TimetableDesigner.Core/Classroom.cs

71 lines
1.4 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.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
namespace TimetableDesigner.Core
{
2023-05-07 17:39:24 +02:00
[Serializable]
public class Classroom : IUnit
2023-03-12 12:32:26 +01:00
{
2023-05-07 17:39:24 +02:00
#region FIELDS
private string _name;
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 Name
{
get => _name;
set => _name = value;
}
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
public Classroom()
{
2023-05-07 17:39:24 +02:00
_name = string.Empty;
_shortName = string.Empty;
_description = string.Empty;
_isCapacityLimited = false;
_capacity = 1;
2023-03-12 12:32:26 +01:00
}
#endregion
}
}