using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Scriban.Syntax;

namespace JiShe.CollectBus.EnergySystem.Dto
{
    /// <summary>
    /// 电表档案下发输入
    /// </summary>
    public class AmmeterArchivesDownInput:BaseInput
    {
        /// <summary>
        /// 采集编码
        /// </summary>
        public string ItemCode { get; set; }

        /// <summary>
        /// 电表：1
        /// </summary>
        public int MeterType { get; set; }

        public AmmeterArchivesDownDetailsInput Details { get; set; }
    }   

    public class AmmeterArchivesDownDetailsInput
    {
        public int SetDeviceCount { get; set; }

        public List<AmmeterArchivesDownDetailsDataInput> Data { get; set; }

    }

    public class AmmeterArchivesDownDetailsDataInput
    {
        /// <summary>
        /// 电表ID
        /// </summary>
        public string AmmeterId { get; set; }

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

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

        /// <summary>
        /// 波特率
        /// </summary>
        public int Rate { get; set; }

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

        /// <summary>
        /// 规约
        /// </summary>
        public string AgreementType { get; set; }

        /// <summary>
        /// 电表地址
        /// </summary>
        public string Addrress { get; set; }

        /// <summary>
        /// 电表密码
        /// </summary>
        public int Password { get; set; }

        /// <summary>
        /// 单费率:1, 复费率:4
        /// </summary>
        public int RatesCount { get; set; }

        /// <summary>
        /// 电能示值整数位个数
        /// </summary>
        public int IntegerCount { get; set; }

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

        /// <summary>
        /// 采集器地址
        /// </summary>
        public string GatherAddress { get; set; }

        /// <summary>
        /// 用户大类号
        /// </summary>
        public string UserBigNumber { get; set; }

        /// <summary>
        /// 用户小类号
        /// </summary>
        public string UserSmallNumber { get; set; }

        /// <summary>
        /// 电表：1
        /// </summary>
        public int MeterType { get; set; }
    }
}
