tankcr

Untitled

Jul 29th, 2014
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. public static Devices GetDeviceData()
  2. {
  3. AndroidController android;
  4. RegawMOD.Android.Device device;
  5. android = AndroidController.Instance;
  6. Devices table = new Devices();
  7. if (android.HasConnectedDevices)
  8. {
  9.  
  10. int num = android.ConnectedDevices.Count;
  11. for(int i = 0; i < android.ConnectedDevices.Count; i++)
  12. {
  13. string exp = @"\s+";
  14. string serial = android.ConnectedDevices[i];
  15. device = android.GetConnectedDevice(serial);
  16. string devserial = device.SerialNumber;
  17. DeviceState state = device.State;
  18.  
  19. table.TableData = new List<Device>();
  20. Device item = new Device();
  21. item.model = model(device);
  22. item.Brand = brand(device);
  23. item.language = language(device);
  24. item.version = version(device);
  25. item.country = country(device);
  26. Card1(device, exp, item);
  27. Card2(device, exp);
  28. item.SerialNumber = serial;
  29. table.TableData.Add(item);
  30. }
  31. }
  32. return table;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment