native_device.js 315 Bytes
var DeviceInfo = function() {
    this.model = null;
    this.platform = null;
    this.version = null;
};

function native_device_callbackWithInfo(result, onSuccess) {
	var c = new DeviceInfo();
	c.model = result["model"];
	c.platform = result["platform"];
    c.version = result["os_version"];
    onSuccess(c);
}