using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Core.StlMes.Client.LgResMgt.Mcms.entity { public class CommunicationEntity { public iCommunication Communication { get; set; } public string Type { get { return Communication == null ? "未知" : Communication is SocketClient ? "远程网络" : Communication is SerialPortEntity ? "本地串口" : "未知"; } } public string PoundNo { get; set; } public string CommunicationInfo { get { return Communication == null ? "" : Communication.ToString(); } } } }