| | |
| | | var responsePackNew = UI.Music.SendMethod.Current.RequestServerhomeId(d, NewAPI.Api_Post_UnbindDeviceToHome, "删除海信电视"); |
| | | if (!this.DataChecking(responsePackNew, tipType)) |
| | | { |
| | | action?.Invoke(false); |
| | | //action?.Invoke(false); |
| | | return; |
| | | } |
| | | action?.Invoke(true); |
| | | } |
| | |
| | | /// <summary> |
| | | /// 发送控制命令 |
| | | /// </summary> |
| | | /// <param name="function">当前设备</param> |
| | | /// <param name="device">当前设备</param> |
| | | /// <param name="dic">发送控制数据</param> |
| | | public void SendControlCommand(Function function, Dictionary<string, string> dic,Action<bool> action) |
| | | public void SendControlCommand(Function device, Dictionary<string, string> dic,Action<bool> action) |
| | | { |
| | | new System.Threading.Thread(() => |
| | | { |
| | | var result = DriverLayer.Control.Ins.SendWriteCommand(function, dic, false, 0); |
| | | var result = DriverLayer.Control.Ins.SendWriteCommand(device, dic, false, 0); |
| | | action?.Invoke(result); |
| | | |
| | | }) |