public void CommandHandler(DataFrames.CommandMessageFrame pMessageFrame, object pParameter) { var ps = (object[])pParameter; var paramValue = (Tuple <string, string>)ps[0]; //设备ID,88888888@gnosis pMessageFrame.AddParameter(string.Empty, paramValue.Item1); //用户ID,88888888@gnosis pMessageFrame.AddParameter(string.Empty, paramValue.Item2); //优先级代码,1 pMessageFrame.AddParameter(string.Empty, ps[1].ToString()); }
public void CommandHandler(DataFrames.CommandMessageFrame pMessageFrame, object pParameter) { object[] ps = (object[])pParameter; string paramValue = (string)ps[0]; pMessageFrame.AddParameter(string.Empty, paramValue); }
public void CommandHandler(DataFrames.CommandMessageFrame pMessageFrame, object pParameter) { var ps = (object[])pParameter; var paramArray = (object[])ps[0]; var paramList = (List <Tuple <string, string> >)paramArray[0]; foreach (Tuple <string, string> param in paramList) { pMessageFrame.AddParameter(param.Item1, param.Item2); } }
public void CommandHandler(DataFrames.CommandMessageFrame pMessageFrame, object pParameter) { object[] ps = (object[])pParameter; //优先级代码 pMessageFrame.AddParameter(string.Empty, ps[1].ToString()); }