cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [8/8] wp7 commit: added model property to device
Date Tue, 04 Dec 2012 01:55:39 GMT
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 <purplecabbage@gmail.com>
Authored: Tue Nov 27 18:39:03 2012 -0800
Committer: Jesse MacFadyen <purplecabbage@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


Mime
View raw message