Skip to content
This repository has been archived by the owner on Apr 18, 2019. It is now read-only.

Commit

Permalink
[CB-1853] - adding in device.model
Browse files Browse the repository at this point in the history
  • Loading branch information
timkim committed Dec 3, 2012
1 parent 22083e2 commit db9ae14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions framework/ext/src/org/apache/cordova/device/Device.java
Expand Up @@ -40,6 +40,7 @@ public final class Device extends Plugin {
public static final String FIELD_PLATFORM = "platform";
public static final String FIELD_UUID = "uuid";
public static final String FIELD_CORDOVA = "cordova";
public static final String FIELD_MODEL = "model";
public static final String FIELD_NAME = "name";
public static final String FIELD_VERSION = "version";

Expand All @@ -54,6 +55,7 @@ public PluginResult execute(String action, JSONArray args, String callbackId) {
device.put( FIELD_PLATFORM, "BlackBerry");
device.put( FIELD_UUID, new Integer( DeviceInfo.getDeviceId()) );
device.put( FIELD_CORDOVA, "2.3.0rc1" );
device.put( FIELD_MODEL, new String(DeviceInfo.getDeviceName()) );
device.put( FIELD_NAME, new String(DeviceInfo.getDeviceName()) );
device.put( FIELD_VERSION, new String(DeviceInfo.getSoftwareVersion()) );
result = new PluginResult(PluginResult.Status.OK, device);
Expand Down

0 comments on commit db9ae14

Please sign in to comment.