Files
parr_api/PARR.API/Contracts/V1/Responses/UnitResponse.cs

40 lines
902 B
C#
Raw Permalink Normal View History

namespace PARR.API.Contracts.V1.Responses
{
public class UnitBaseResponse
{
public Guid Id { get; set; }
public required string Name { get; set; }
}
public class UnitResponse : UnitBaseResponse
{
}
/// <summary>
/// Response со всеми аттребутами и их значениями
/// </summary>
public class UnitWithAttributesResponse : UnitResponse
{
public DateTimeOffset? LastLogon { get; set; }
public List<AttributeResponse>? Attributes { get; set; }
//public List<UnitResponse>? Parents { get; set; }
//public List<UnitResponse>? Childrens { get; set; }
}
public class UnitRelationshipsAndAttributesResponse : UnitWithAttributesResponse
{
public List<UnitResponse>? Parents { get; set; }
public List<UnitResponse>? Childrens { get; set; }
}
}