Permalink
Browse files

added model property to device

  • Loading branch information...
1 parent 41de5f5 commit 7d967786a6198e93a7d951a3a74f4ccbc781f5ec @purplecabbage purplecabbage committed Nov 28, 2012
Showing with 12 additions and 4 deletions.
  1. +12 −4 templates/standalone/cordovalib/Commands/Device.cs
@@ -35,20 +35,28 @@ public class Device : BaseCommand
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

0 comments on commit 7d96778

Please sign in to comment.