Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static Devices GetDeviceData()
- {
- AndroidController android;
- RegawMOD.Android.Device device;
- android = AndroidController.Instance;
- Devices table = new Devices();
- if (android.HasConnectedDevices)
- {
- int num = android.ConnectedDevices.Count;
- for(int i = 0; i < android.ConnectedDevices.Count; i++)
- {
- string exp = @"\s+";
- string serial = android.ConnectedDevices[i];
- device = android.GetConnectedDevice(serial);
- string devserial = device.SerialNumber;
- DeviceState state = device.State;
- table.TableData = new List<Device>();
- Device item = new Device();
- item.model = model(device);
- item.Brand = brand(device);
- item.language = language(device);
- item.version = version(device);
- item.country = country(device);
- Card1(device, exp, item);
- Card2(device, exp);
- item.SerialNumber = serial;
- table.TableData.Add(item);
- }
- }
- return table;
- }
Advertisement
Add Comment
Please, Sign In to add comment