示例#1
0
        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());
        }
示例#2
0
        public void CommandHandler(DataFrames.CommandMessageFrame pMessageFrame, object pParameter)
        {
            object[] ps         = (object[])pParameter;
            string   paramValue = (string)ps[0];

            pMessageFrame.AddParameter(string.Empty, paramValue);
        }
示例#3
0
        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);
            }
        }
示例#4
0
 public void CommandHandler(DataFrames.CommandMessageFrame pMessageFrame, object pParameter)
 {
     object[] ps = (object[])pParameter;
     //优先级代码
     pMessageFrame.AddParameter(string.Empty, ps[1].ToString());
 }