public static Core.Contracts.IDevice Convert(Managed.Adb.IDevice device) { return(new DeviceDTO { SerialNumber = device.SerialNumber }); }
public void UseDevice(Core.Contracts.IDevice device) { selectedDevice = connectedDevices.Single(d => d.SerialNumber.Equals(device.SerialNumber)); typeof(BusyBox).GetProperty(nameof(BusyBox.Available)).SetValue(selectedDevice.BusyBox, false); // ensure native commands }