IotEquipmmentRunParameter.cs 1.32 KB
using System.Text.Json.Serialization;

namespace DataAcquisition.ViewModels.IOT
{
    public class IotEquipmmentRunParameter: IotBase
    {
        /// <summary>
        /// 设备状态
        /// </summary>
        /// <remarks>联机、手动等</remarks>
        public string Status { get; set; } = null!;

        /// <summary>
        /// 电量
        /// </summary>
        public float Voltage { get; set; }

        /// <summary>
        /// 电压
        /// </summary>
        public float Power { get; set; }

        /// <summary>
        /// 电流
        /// </summary>
        public float Current { get; set; }

        /// <summary>
        /// 其他
        /// </summary>
        /// <remarks>Json数据</remarks>
        [JsonPropertyName("other_val")]
        public string OtherVal { get; set; } = null!;

        /// <summary>
        /// 扩展列1
        /// </summary>
        [JsonPropertyName("extend_col1")]
        public string ExtendCol1 { get; set; } = null!;

        /// <summary>
        /// 扩展列2
        /// </summary>
        [JsonPropertyName("extend_col2")]
        public string ExtendCol2 { get; set; } = null!;

        /// <summary>
        /// 扩展列3
        /// </summary>
        [JsonPropertyName("extend_col3")]
        public string ExtendCol3 { get; set; } = null!;
    }
}