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

40 lines
902 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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; }
}
}