Beispiel #1
0
        MSGStruct CmdParse(string cmd)
        {
            //SET:......
            string[]  strTemp = cmd.Split(':');
            MSGStruct msg     = new MSGStruct();

            msg.key = strTemp[0];
            if (strTemp.Length == 1)
            {
                msg.json = "0";
            }
            else
            {
                msg.json = strTemp[1];
            }

            return(msg);
        }
Beispiel #2
0
 public ReachedEventArgs(MSGStruct msg)
 {
     this.msg = msg;
 }