forked from ddrilling/AsbCloudServer
33 lines
880 B
C#
33 lines
880 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace AsbCloudApp.Data.Manuals;
|
|
|
|
/// <summary>
|
|
/// Директория для хранения инструкций
|
|
/// </summary>
|
|
public class ManualDirectoryDto : IId
|
|
{
|
|
/// <inheritdoc/>
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Название
|
|
/// </summary>
|
|
public string Name { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Id родительской директории
|
|
/// </summary>
|
|
public int? IdParent { get; set; }
|
|
|
|
/// <summary>
|
|
/// Вложенные директории
|
|
/// </summary>
|
|
public IEnumerable<ManualDirectoryDto> Children { get; set; } = Enumerable.Empty<ManualDirectoryDto>();
|
|
|
|
/// <summary>
|
|
/// Хранимые инструкции
|
|
/// </summary>
|
|
public IEnumerable<ManualDto> Manuals { get; set; } = Enumerable.Empty<ManualDto>();
|
|
} |