You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2012/12/04 02:55:39 UTC
[8/8] wp7 commit: added model property to device
added model property to device
Project: http://git-wip-us.apache.org/repos/asf/cordova-wp7/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp7/commit/7d967786
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp7/tree/7d967786
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp7/diff/7d967786
Branch: refs/heads/master
Commit: 7d967786a6198e93a7d951a3a74f4ccbc781f5ec
Parents: 41de5f5
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Tue Nov 27 18:39:03 2012 -0800
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Tue Nov 27 18:39:03 2012 -0800
----------------------------------------------------------------------
templates/standalone/cordovalib/Commands/Device.cs | 16 +++++++++++---
1 files changed, 12 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/7d967786/templates/standalone/cordovalib/Commands/Device.cs
----------------------------------------------------------------------
diff --git a/templates/standalone/cordovalib/Commands/Device.cs b/templates/standalone/cordovalib/Commands/Device.cs
index c8b663d..8e6d496 100644
--- a/templates/standalone/cordovalib/Commands/Device.cs
+++ b/templates/standalone/cordovalib/Commands/Device.cs
@@ -35,20 +35,28 @@ namespace WP7CordovaClassLib.Cordova.Commands
public void getDeviceInfo(string notused)
{
- string res = String.Format("\"name\":\"{0}\",\"cordova\":\"{1}\",\"platform\":\"{2}\",\"uuid\":\"{3}\",\"version\":\"{4}\"",
+ string res = String.Format("\"name\":\"{0}\",\"cordova\":\"{1}\",\"platform\":\"{2}\",\"uuid\":\"{3}\",\"version\":\"{4}\",\"model\":\"{5}\"",
this.name,
this.cordova,
this.platform,
this.uuid,
- this.version);
-
-
+ this.version,
+ this.model);
res = "{" + res + "}";
//Debug.WriteLine("Result::" + res);
DispatchCommandResult(new PluginResult(PluginResult.Status.OK, res));
}
+ public string model
+ {
+ get
+ {
+ return DeviceStatus.DeviceName;
+ }
+ }
+
+
public string name
{
get