using SWRIS.Models.Data;
using System.Collections.Generic;
using System.IO;

namespace SWRIS.Models
{
    public class DetectionDataModel
    {
        /// <summary>
        /// 开始时间 时间戳
        /// </summary>
        public int StartTime { get; set; }

        /// <summary>
        /// 结束时间 时间戳
        /// </summary>
        public int EndTime { get; set; }

        /// <summary>
        /// 开始位置 m
        /// </summary>
        public double StartPoint { get; set; }

        /// <summary>
        /// 结束位置 m
        /// </summary>
        public double EndPoint { get; set; }
        /// <summary>
        /// 检测长度 m
        /// </summary>
        public double DetectionLength { get; set; }
        /// <summary>
        /// 检测速度 m/s
        /// </summary>
        public double DetectedSpeed { get; set; }

        /// <summary>
        /// 损伤数量
        /// </summary>
        public short DamageCount { get; set; }

        /// <summary>
        /// 损伤数据
        /// </summary>
        public List<DamageModel> Damages { get; set; }

        /// <summary>
        /// 获取原始数据返回结果
        /// </summary>
        public DetectionRawResultDataModel RawResultData { get; set; }

        /// <summary>
        /// 原始数据
        /// </summary>
        public MemoryStream RawData { get; set; } = new MemoryStream();

        /// <summary>
        /// 原始数据接收中
        /// </summary>
        public bool RawDataReceiving { get; set; }

        /// <summary>
        /// 检测编号 
        /// </summary>
        public uint DetectionNo { get; set; }
    }
}
