From fd021bf3498590ac028a20de72cf558b786745ef Mon Sep 17 00:00:00 2001 From: Joe Pasqua Date: Sat, 5 Oct 2013 13:27:13 -0700 Subject: [PATCH] Make low level vehicle data available --- src/org/noroomattheinn/tesla/Vehicle.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/org/noroomattheinn/tesla/Vehicle.java b/src/org/noroomattheinn/tesla/Vehicle.java index 539e07f..1ffca38 100644 --- a/src/org/noroomattheinn/tesla/Vehicle.java +++ b/src/org/noroomattheinn/tesla/Vehicle.java @@ -42,6 +42,7 @@ public class Vehicle { private String streamingTokens[]; private String status; private Options options; + private String baseValues; // // Constructors @@ -50,6 +51,8 @@ public class Vehicle { public Vehicle(Tesla tesla, JSONObject description) { this.tesla = tesla; this.api = tesla.getAPI(); + this.baseValues = description.toString(); + UNKNOWN_color = "UNKNOWN"; UNKNOWN_display_name = "UNKNOWN"; vehicleID = description.optString("id"); @@ -93,7 +96,9 @@ public boolean mobileEnabled() { return false; } } - + public String getUnderlyingValues() { + return baseValues; + } // // Methods to get context