using JiShe.CollectBus.Protocol.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JiShe.CollectBus.Protocol.Contracts.Protocol.Dto
{
    public class AFN10_F10_AnalysisDto
    {
        /// <summary>
        /// 本次电能表/交流采样装置配置数量 n
        /// </summary>
        public int ConfigNum { get; set; }

        /// <summary>
        /// 电能表/交流采样装置配置信息
        /// </summary>
        public List<AFN10F10Entity> AFN10F10Entitys { get; set; } = new List<AFN10F10Entity>();
    }


    public class AFN10F10Entity
    {
        /// <summary>
        /// 电能表/交流采样装置序号 
        /// </summary>
        public int SerialNum { get; set; }

        /// <summary>
        /// 所属测量点号 
        /// </summary>
        public int Point { get; set; }

        /// <summary>
        /// 通信速率
        /// </summary>
        public int BaudRate { get; set; }

        /// <summary>
        /// 端口号 
        /// </summary>
        public int Port { get; set; }


        /// <summary>
        /// 通信协议类型 
        /// </summary>
        public string RuleType { get; set; }

        /// <summary>
        /// 通信地址 
        /// </summary>
        public string ComAddress { get; set; }

        /// <summary>
        /// 通信密码 
        /// </summary>
        public string ComPwd { get; set; }


        /// <summary>
        /// 电能费率个数  
        /// </summary>
        public int ElectricityRatesNum { get; set; }


        /// <summary>
        /// 有功电能示值整数位及小数位个数
        /// </summary>
        public int IntegerBitsNum { get; set; }

        /// <summary>
        /// 有功电能示值小数位个数
        /// </summary>
        public int DecimalPlacesNum { get; set; }

        /// <summary>
        /// 所属采集器通信地址
        /// </summary>
        public string CollectorAddress{ get; set; }

        /// <summary>
        /// 用户大类号
        /// </summary>
        public int UserCategoryNum { get; set;}

        /// <summary>
        /// 用户小类号
        /// </summary>
        public int UserSubclassNum { get; set; }
    }

}
