2023-08-10 11:45:05 +05:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Data.Manuals;
|
|
|
|
|
|
|
|
/// <summary>
|
2023-09-07 12:21:54 +05:00
|
|
|
/// Директория для хранения инструкций
|
2023-08-10 11:45:05 +05:00
|
|
|
/// </summary>
|
2023-09-07 12:21:54 +05:00
|
|
|
public class ManualDirectoryDto : IId
|
2023-08-10 11:45:05 +05:00
|
|
|
{
|
2024-07-04 11:02:45 +05:00
|
|
|
/// <inheritdoc/>
|
|
|
|
public int Id { get; set; }
|
2023-08-10 11:45:05 +05:00
|
|
|
|
2024-07-04 11:02:45 +05:00
|
|
|
/// <summary>
|
|
|
|
/// Название
|
|
|
|
/// </summary>
|
|
|
|
public string Name { get; set; } = null!;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Id родительской директории
|
|
|
|
/// </summary>
|
|
|
|
public int? IdParent { get; set; }
|
2023-08-10 11:45:05 +05:00
|
|
|
|
2024-07-04 11:02:45 +05:00
|
|
|
/// <summary>
|
|
|
|
/// Вложенные директории
|
|
|
|
/// </summary>
|
|
|
|
public IEnumerable<ManualDirectoryDto> Children { get; set; } = Enumerable.Empty<ManualDirectoryDto>();
|
2023-08-10 11:45:05 +05:00
|
|
|
|
2024-07-04 11:02:45 +05:00
|
|
|
/// <summary>
|
|
|
|
/// Хранимые инструкции
|
|
|
|
/// </summary>
|
|
|
|
public IEnumerable<ManualDto> Manuals { get; set; } = Enumerable.Empty<ManualDto>();
|
2023-08-10 11:45:05 +05:00
|
|
|
}
|