2025-06-06 16:39:41 +10:00
|
|
|
|
namespace PARR.API.Contracts.V1.Responses
|
|
|
|
|
|
{
|
2025-06-09 13:55:57 +10:00
|
|
|
|
public class UnitBaseResponse
|
2025-06-06 16:39:41 +10:00
|
|
|
|
{
|
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public required string Name { get; set; }
|
2025-08-26 14:04:49 +10:00
|
|
|
|
|
|
|
|
|
|
|
2025-06-06 16:39:41 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-06-09 13:55:57 +10:00
|
|
|
|
public class UnitResponse : UnitBaseResponse
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-06-06 16:39:41 +10:00
|
|
|
|
/// <summary>
|
2025-11-21 10:56:30 +10:00
|
|
|
|
/// Response со всеми аттребутами и их значениями
|
2025-06-06 16:39:41 +10:00
|
|
|
|
/// </summary>
|
2025-09-09 17:19:41 +10:00
|
|
|
|
public class UnitWithAttributesResponse : UnitResponse
|
2025-06-06 16:39:41 +10:00
|
|
|
|
{
|
2025-08-26 14:04:49 +10:00
|
|
|
|
public DateTimeOffset? LastLogon { get; set; }
|
|
|
|
|
|
|
2025-06-06 16:39:41 +10:00
|
|
|
|
public List<AttributeResponse>? Attributes { get; set; }
|
2025-08-27 10:43:33 +10:00
|
|
|
|
|
2025-11-21 10:56:30 +10:00
|
|
|
|
//public List<UnitResponse>? Parents { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
//public List<UnitResponse>? Childrens { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class UnitRelationshipsAndAttributesResponse : UnitWithAttributesResponse
|
|
|
|
|
|
{
|
2025-09-09 17:19:41 +10:00
|
|
|
|
public List<UnitResponse>? Parents { get; set; }
|
2025-08-27 10:43:33 +10:00
|
|
|
|
|
2025-09-09 17:19:41 +10:00
|
|
|
|
public List<UnitResponse>? Childrens { get; set; }
|
2025-06-06 16:39:41 +10:00
|
|
|
|
}
|
2025-06-09 13:55:57 +10:00
|
|
|
|
|
2025-06-06 16:39:41 +10:00
|
|
|
|
}
|