using System.IO.Ports; namespace IBox.WinFrmUI { public class IBoxProtocolViewModel { /// /// 协议类型 /// public string ProtocolType { get; set; } /// /// IP地址 /// public string IP { get; set; } /// /// 端口 /// public string Port { get; set; } /// /// 波特率 /// public int BaudRate { get; set; } /// /// 奇偶校验 /// public Parity parity { get; set; } /// /// 数据位 /// public int dataBits { get; set; } /// /// 停止位 /// public StopBits stopBits { get; set; } /// /// 站号 /// public int StationNumber { get; set; } /// /// 机架号 /// public int RackNumber { get; set; } /// /// 插槽号 /// public int SlotNumber { get; set; } } }