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

namespace JiShe.CollectBus.EnergySystem.Dto
{
    /// <summary>
    /// 通讯参数设置
    /// </summary>
    public class CommunicationParametersSetInput:BaseInput
    {
        /// <summary>
        /// 采集编码
        /// </summary>
        public string ItemCode { get; set; }

        /// <summary>
        /// 集中器ID
        /// </summary>
        public string FocusID { get; set; }

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

        public CommunicationParametersSetDataInput Data { get; set; }
    }

    public class CommunicationParametersSetDataInput
    {
        /// <summary>
        /// 主站IP和端口 如 119.23.59.186:10976
        /// </summary>
        public string MasterIPandPort { get; set; }

        /// <summary>
        /// 备用IP和端口
        /// </summary>
        public string BackupIPandPort { get; set; }

        /// <summary>
        /// APN 如 CMNET
        /// </summary>
        public string APN { get; set; }
    }
}
