using System; using System.Collections.Generic; using System.Linq; using System.Text; using SuperSocket.SocketBase; using SuperSocket.SocketBase.Command; using SuperSocket.SocketBase.Protocol; namespace SensorHub.Servers { public class CasicSession : AppSession<CasicSession, StringRequestInfo> { private String hubAddr; public String HubAddr { get { return hubAddr; } set { hubAddr = value; } } public Dictionary<string, DeviceDTO> devMaps = new Dictionary<string, DeviceDTO>(); public class DeviceDTO { private String devCode; private String detail; private bool isWakeup; private String company; private String devType; private String status; private UInt16 seq; private String sensorCode;//add by yan public UInt16 Seq { get { return seq; } set { seq = value; } } public String DevCode { get { return devCode; } set { devCode = value; } } public String Detail { get { return detail; } set { detail = value; } } public bool IsWakeUp { get { return isWakeup; } set { isWakeup = value; } } public String Company { get { return company; } set { company = value; } } public String DevType { get { return devType; } set { devType = value; } } public String Status { get { return status; } set { status = value; } } public String SensorCode { get { return sensorCode; } set { sensorCode = value; } } } } }