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); }
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); }
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); }