cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [1/2] cordova-plugin-device git commit: [CB-7285][WP8] add manufacturer info
Date Wed, 04 Feb 2015 19:09:37 GMT
Repository: cordova-plugin-device
Updated Branches:
  refs/heads/master e1410aa52 -> 734e01f5a


[CB-7285][WP8] add manufacturer info


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/commit/d505dfa4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/tree/d505dfa4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/diff/d505dfa4

Branch: refs/heads/master
Commit: d505dfa49c407b6fe034bc67e0587c4ed31d6c61
Parents: e1410aa
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Wed Feb 4 11:00:18 2015 -0800
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Wed Feb 4 11:00:18 2015 -0800

----------------------------------------------------------------------
 src/wp/Device.cs | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/d505dfa4/src/wp/Device.cs
----------------------------------------------------------------------
diff --git a/src/wp/Device.cs b/src/wp/Device.cs
index 306b807..897a35a 100644
--- a/src/wp/Device.cs
+++ b/src/wp/Device.cs
@@ -35,12 +35,13 @@ namespace WPCordovaClassLib.Cordova.Commands
         public void getDeviceInfo(string notused)
         {
 
-            string res = String.Format("\"name\":\"{0}\",\"platform\":\"{1}\",\"uuid\":\"{2}\",\"version\":\"{3}\",\"model\":\"{4}\"",
+            string res = String.Format("\"name\":\"{0}\",\"platform\":\"{1}\",\"uuid\":\"{2}\",\"version\":\"{3}\",\"model\":\"{4}\",\"manufacturer\":\"{5}\"",
                                         this.name,
                                         this.platform,
                                         this.uuid,
                                         this.version,
-                                        this.model);
+                                        this.model,
+                                        this.manufacturer);
 
             res = "{" + res + "}";
             //Debug.WriteLine("Result::" + res);
@@ -56,6 +57,14 @@ namespace WPCordovaClassLib.Cordova.Commands
             }
         }
 
+        public string manufacturer
+        {
+            get
+            {
+                return DeviceStatus.DeviceManufacturer;
+            }
+        }
+
         public string name
         {
             get


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message