Skip to content

Commit

Permalink
Make low level vehicle data available
Browse files Browse the repository at this point in the history
  • Loading branch information
jpasqua committed Oct 5, 2013
1 parent 9f18f88 commit fd021bf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/org/noroomattheinn/tesla/Vehicle.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public class Vehicle {
private String streamingTokens[];
private String status;
private Options options;
private String baseValues;

//
// Constructors
Expand All @@ -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");
Expand Down Expand Up @@ -93,7 +96,9 @@ public boolean mobileEnabled() {
return false;
}
}

public String getUnderlyingValues() {
return baseValues;
}

//
// Methods to get context
Expand Down

0 comments on commit fd021bf

Please sign in to comment.