using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QM.Exchange.Interface;
namespace QM.Exchange.Custom.Commands.Samples
{
///
/// 远程开灯命令
///
public class RShutLightCommand:DataCommand
{
public RShutLightCommand(CommonMessage message)
: base(message)
{
}
///
/// 执行
///
public override void Execute(IExChangeContext exChangeContext, CommonMessage message)
{
//解析消息(分析出目标控制客户端ID和设备ID)
//定义远程关灯消息
//根据客户端ID获取客户端会话ID
List workers = exChangeContext.GetWokerList().ToList();
//根据会话ID获取客户端会话
//发送消息
////定义消息
//CommonMessge msg = new CommonMessge();
//msg.MsgID = Guid.NewGuid().ToString();
//msg.MsgType = "UpdateSystemTime";
//msg.Content = QMFrameWork.Common.Serialization.JsonConvertHelper.GetSerializes(DateTime.Now);
}
}
}