IotEquipmentDataDto.cs 858 Bytes
namespace DataAcquisition.ViewModels.IOT
{
    public class IotEquipmentDataDto
    {
        public Guid Plmeid { get; set; }

        public string EquipmentSN { get; set; } = null!;

        /// <summary>
        /// 数据提交时间戳/数据源时间戳
        /// </summary>
        public long Timestamp { get; set; }

        /// <summary>
        /// 数据数组
        /// </summary>
        public List<TagItem> Reported { get; set; } = new List<TagItem>();

        /// <summary>
        /// 版本号
        /// </summary>
        public int Version { get; set; }
    }

    public class TagItem
    {
        /// <summary>
        /// 节点
        /// </summary>
        public string Tag { get; set; } = null!;

        /// <summary>
        /// 值
        /// </summary>
        public string Value { get; set; } = null!;
    }
}