Exemple #1
0
 public static Core.Contracts.IDevice Convert(Managed.Adb.IDevice device)
 {
     return(new DeviceDTO
     {
         SerialNumber = device.SerialNumber
     });
 }
Exemple #2
0
 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
 }