using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DW5S.DTO
{
///
/// 信号识别模型
///
public class SignalProcDto: IValidatableObject
{
///
/// 调用Upload接口上传文件后返回的文件名
///
public string File { get; set; }
///
/// 文件采样率(Hz)
///
public long Fs { get; set; }
///
/// 样点集合信息
///
public List Smps { get; set; } = new List();
///
///
///
///
///
public IEnumerable Validate(ValidationContext validationContext)
{
if (Smps==null||!Smps.Any())
yield return new ValidationResult("样点集合至少包含一个元素", new[] { nameof(this.Smps) });
yield return null;
}
}
}