private void CommandREQStatusReport(Connection clientConnection, Data dato) { StatusFrameDecoded message = new StatusFrameDecoded(); message.Parse(dato.Payload.Message); SingletonDeviceInfoHandler.GetInstance().UpdateDeviceStatus(message); log.DebugFormat("Llego REQ STATUS con {0}", message.ToString()); log.DebugFormat("Notificar a server estadisticas"); MessageBean messageBean = new MessageBean() { Message = dato.Payload.Message, MessageType = MessageTypeEnum.STATUS }; StatisticsQueueClient.GetInstance().SendMessages(messageBean); }
public List <DeviceInfo> GetDevices() { return(SingletonDeviceInfoHandler.GetInstance().GetDevices()); }