Skip to content

Commit

Permalink
Updated VehicleConfig properties
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasman committed Feb 25, 2018
1 parent b3f2641 commit 7ee7a0f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Sources/VehicleConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ import Foundation

open class VehicleConfig: Codable {

private var canActuateTrunksBool: Int?
open var canActuateTrunks: Bool? { return canActuateTrunksBool == 1 }
open var carSpecialType: String?
open var carType: String?
open var chargePortType: String?
private var euVehicleBool: Int?
open var euVehicle: Bool? { return euVehicleBool == 1 }
open var exteriorColor: String?
Expand All @@ -38,8 +41,10 @@ open class VehicleConfig: Codable {

enum CodingKeys: String, CodingKey {

case canActuateTrunksBool = "can_actuate_trunks"
case carSpecialType = "car_special_type"
case carType = "car_type"
case chargePortType = "charge_port_type"
case euVehicleBool = "eu_vehicle"
case exteriorColor = "exterior_color"
case hasLudicoursModeBool = "has_ludicrous_mode"
Expand All @@ -54,7 +59,7 @@ open class VehicleConfig: Codable {
case spoilerType = "spoiler_type"
case sunRoofInstalledBool = "sun_roof_installed"
case thirdRowSeats = "third_row_seats"
case timeStamp = "timestamp"//, TeslaTimeStampTransform())
case timeStamp = "timestamp"
case trimBadging = "trim_badging"
case wheelType = "wheel_type"
}
Expand Down

0 comments on commit 7ee7a0f

Please sign in to comment.