forked from ddrilling/AsbCloudServer
25 lines
536 B
C#
25 lines
536 B
C#
|
using System.Collections.Generic;
|
||
|
|
||
|
namespace AsbCloudApp.Services;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Результат валидации объекта
|
||
|
/// </summary>
|
||
|
public class ValidationResultDto<T>
|
||
|
where T : class
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Флаг валидности
|
||
|
/// </summary>
|
||
|
public bool IsValid { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Объект валидации
|
||
|
/// </summary>
|
||
|
public T Item { get; set; } = null!;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Предупреждения
|
||
|
/// </summary>
|
||
|
public IEnumerable<string>? Warnings { get; set; }
|
||
|
}
|