2024-12-04 14:13:25 +05:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
2024-12-16 15:38:46 +05:00
|
|
|
|
namespace DD.Persistence.Models;
|
2024-12-04 14:13:25 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Модель параметра
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class ParameterDto
|
|
|
|
|
{
|
2024-12-12 16:56:25 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Дискриминатор системы
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Guid DiscriminatorId { get; set; }
|
2024-12-04 14:13:25 +05:00
|
|
|
|
|
2024-12-12 16:56:25 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Id параметра
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Range(0, int.MaxValue, ErrorMessage = "Id параметра не может быть меньше 0")]
|
|
|
|
|
public int ParameterId { get; set; }
|
2024-12-04 14:13:25 +05:00
|
|
|
|
|
2024-12-12 16:56:25 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Значение параметра в виде строки
|
|
|
|
|
/// </summary>
|
|
|
|
|
[StringLength(256, MinimumLength = 1, ErrorMessage = "Допустимая длина значения параметра от 1 до 256 символов")]
|
|
|
|
|
public required string Value { get; set; }
|
2024-12-04 14:13:25 +05:00
|
|
|
|
|
2024-12-12 16:56:25 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Временная отметка
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTimeOffset Timestamp { get; set; }
|
2024-12-04 14:13:25 +05:00
|
|
|
|
}
|