using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net.Sockets; using HxModel.Sockets.HxHotel; using DataEntity.Sockets.Base; namespace XImagingXhandler.XDAL { /// /// 通用socket参数 /// public class SocketParameterModel { /// /// Socket /// public Socket Socket { get; set; } /// /// IP /// public string Ip { get; set; } /// /// 端口 /// public int Port { get; set; } /// /// 变量(固定值:#!HxSEP!#) /// public string SpecifiedDisplay { get; set; } /// /// 消息ID /// public string HeartmessageId { get; set; } /// /// 消息类型 /// public int HeartMessageType { get; set; } /// /// 心跳设备ID /// public string HeartEquipmentId { get; set; } /// /// 锁定回复 /// public object LockReceive { get; set; } /// /// 缓存存储大小 /// public byte[] Buffer { get; set; } /// /// 设备类型 /// public string EquipmentType { get; set; } /// /// 缓存接收到的数据 /// public List cacheReceiveData = new List(); /// /// 设备状态(是否忙碌 1空闲、2忙碌) /// public static Dictionary Dic_EquipmentStatus = new Dictionary(); /// /// 设备状态(0驱动虚拟机模式,1驱动连真机状态) /// public static Dictionary Dic_EquipmentConnectedStatus = new Dictionary(); /// /// 虚拟连接状态 /// public bool VirtualConnectionState { get; set; } /// /// 延迟时间(秒) /// public int DelaySecondTime { get; set; } /// /// 设备ID /// public string EquipmentId { get; set; } /// /// 方法返回值:key = 方法名, value = 返回值 /// public Dictionary DicReturn = new Dictionary(); } /// /// 接收数据实体类 /// public class CacheReceiveDataModel { /// /// key /// public string CacheKey { get; set; } /// /// 响应对象 /// public ResponseObject CacheValue { get; set; } } }