using JiShe.CollectBus.Analyzers.Shared;
using JiShe.CollectBus.IoTDB.Attributes;
using JiShe.CollectBus.IoTDB.Model;
using System;

namespace JiShe.CollectBus.Ammeters
{
    [SourceAnalyzers(EntityTypeEnum.TableModel)]
    public class ElectricityMeter : IoTEntity
    {
        [ATTRIBUTEColumn]
        public string MeterModel { get; set; }

        /// <summary>
        /// 下发消息内容
        /// </summary>
        [FIELDColumn]
        public string IssuedMessageHexString { get; set; }

        ///// <summary>
        ///// 下发消息Id
        ///// </summary>
        //[FIELDColumn]
        //public string IssuedMessageId { get; set; }

        [FIELDColumn]
        public double Voltage { get; set; }

        [FIELDColumn]
        public double Current { get; set; }

        [FIELDColumn]
        public double Power { get; set; }

        [FIELDColumn]
        public double? Currentd { get; set; }

        [FIELDColumn]
        public DateTime? CurrentdDateTime { get; set; }
    }
}
