2023-05-30 20:44:39 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Numerics;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace TimetableDesigner.Core
|
|
|
|
|
|
{
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
|
public abstract class Unit
|
|
|
|
|
|
{
|
|
|
|
|
|
#region FIELDS
|
|
|
|
|
|
|
|
|
|
|
|
private ulong _id;
|
|
|
|
|
|
private Guid _guid;
|
|
|
|
|
|
private string _name;
|
2023-06-05 00:00:38 +02:00
|
|
|
|
private string _shortName;
|
2023-05-30 20:44:39 +02:00
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region PROPERTIES
|
|
|
|
|
|
|
|
|
|
|
|
public ulong Id => _id;
|
|
|
|
|
|
public Guid Guid => _guid;
|
|
|
|
|
|
public string Name
|
|
|
|
|
|
{
|
|
|
|
|
|
get => _name;
|
|
|
|
|
|
set => _name = value;
|
|
|
|
|
|
}
|
2023-06-05 00:00:38 +02:00
|
|
|
|
public string ShortName
|
|
|
|
|
|
{
|
|
|
|
|
|
get => _shortName;
|
|
|
|
|
|
set => _shortName = value;
|
|
|
|
|
|
}
|
2023-05-30 20:44:39 +02:00
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region CONSTRUCTORS
|
|
|
|
|
|
|
|
|
|
|
|
public Unit(ulong id)
|
|
|
|
|
|
{
|
|
|
|
|
|
_id = id;
|
|
|
|
|
|
_guid = Guid.NewGuid();
|
|
|
|
|
|
_name = string.Empty;
|
2023-06-05 00:00:38 +02:00
|
|
|
|
_shortName = string.Empty;
|
2023-05-30 20:44:39 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|