public static DeviceInfo GetDeviceInfo()
        {
            DeviceInfo device = new DeviceInfo();
            device.IsConnected = iPhoneInterface.IsConnected;
            if (!device.IsConnected)
            {
                return device;
            }
            device.DeviceName = iPhoneInterface.DeviceName;
            device.DeviceId = iPhoneInterface.DeviceId;
            device.DeviceType = iPhoneInterface.DeviceType;
            device.DeviceVersion = iPhoneInterface.DeviceVersion;
            device.DeviceSerial = iPhoneInterface.DeviceSerial;
            device.IMEI = iPhoneInterface.InternationalMobileEquipmentIdentity;
            device.ActivationState = iPhoneInterface.ActivationState;

            return device;
        }
 public static DeviceInfo GetDeviceInfo()
 {
     DeviceInfo device = new DeviceInfo();
     device.IsConnected = iPhoneInterface.IsConnected;
     if (!device.IsConnected)
     {
         return device;
     }
     device.ICCID = iPhoneInterface.GetIntegratedCircuitCardIdentity;
     device.DeviceName = iPhoneInterface.GetDeviceName;
     device.DeviceId = iPhoneInterface.GetUniqueDeviceID;
     device.DeviceType = iPhoneInterface.GetProductType;
     device.DeviceVersion = iPhoneInterface.GetDeviceVersion;
     device.DeviceSerial = "";
     device.IMEI = iPhoneInterface.GetInternationalMobileEquipmentIdentity;
     device.ActivationState = iPhoneInterface.GetActivationState;
     device.ModelNumber = iPhoneInterface.GetModelNumber;
     return device;
 }