using System.ComponentModel.DataAnnotations; using JiShe.CollectBus.Common.Enums; namespace JiShe.CollectBus.Common.Models { public class ReqParameter { public AFN AFN { get; set; } //功能码 public int FunCode { get; set; } public PRM PRM { get; set; } = PRM.启动站报文; [Required] public string A { get; set; } [Required] public Seq Seq { get; set; } public int MSA { get; set; } = 0; } public class ReqParameter2 : ReqParameter { public int Pn { get; set; } public int Fn { get; set; } } public class AmmeterParameter { /// /// 测量点号 0~2040 为0被删除 /// public int Pn { get; set; } /// /// 波特率600起 1~7 /// public int BaudRate { get; set; } /// /// 端口号 1-31 /// public int Port { get; set; } public CommunicationProtocolType ProtocolType { get; set; } /// /// 通信地址 0~999999999999 /// public string Address { get; set; } /// /// 通信密码 /// public string Password { get; set; } = "000000"; /// /// 电能费率个数 1~12 /// public int RateNumber { get; set; } /// /// 整数位个数 0~3 对应4~7位整数 /// public int IntegerBitNumber { get; set; } /// /// 小数位个数0~3 对应1~4位小数 /// public int DecimalBitNumber { get; set; } /// /// 所属采集器通信地址 /// public string CollectorAddress { get; set; } /// /// 用户大类号 0~15 /// public int UserCategoryNumber { get; set; } /// /// 用户小类号 0~15 /// public int UserSubclassNumber { get; set; } } }