コード例 #1
0
        void ITerminal2ServerEventCallback.Terminal_BindDevice(BindDeviceArgs args, AsyncCallback successful, AsyncCallback failure)
        {
            CmdJson cmd = new CmdJson
            {
                action  = "Terminal_BindDevice",
                content = args.ToString()
            };

            EcciotInstance.Send(cmd.ToString(), successful, failure);
        }
コード例 #2
0
        void IRtcCheckIdentityCallback.Terminal_CheckTerminalIdentity(CheckTerminalIdentityArgs args, AsyncCallback successful, AsyncCallback failure)
        {
            CmdJson cmd = new CmdJson
            {
                action  = "Terminal_CheckTerminalIdentity",
                content = args.ToString()
            };

            EcciotInstance.Send(cmd.ToString(), successful, failure);
        }
コード例 #3
0
        public void Send_Cmd(BaseCmdArgs args, AsyncCallback successful, AsyncCallback failure)
        {
            ArgsAttribute aa = args.GetType().GetCustomAttribute <ArgsAttribute>();

            CmdJson cmd = new CmdJson
            {
                action  = aa.Action,
                content = args.ToString()
            };

            EcciotInstance.Send(cmd.ToString(), successful, failure);
        }