Skip to content

Commit

Permalink
Added new charging parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasman committed Feb 25, 2018
1 parent 433c3c3 commit 09fcbdf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/ChargeState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ open class ChargeState: Codable {
*/
open var chargingState: ChargingState?

open var connChargeCable: String?

/**
Range estimated from recent driving
*/
Expand All @@ -94,6 +96,7 @@ open class ChargeState: Codable {
private var euVehicleBool: Int?
open var euVehicle: Bool? { return euVehicleBool == 1 }

open var fastChargerBrand: String?
/**
Vehicle connected to supercharger?
*/
Expand Down Expand Up @@ -171,10 +174,13 @@ open class ChargeState: Codable {

case chargingState = "charging_state"

case connChargeCable = "conn_charge_cable"

case estimatedBatteryRange = "est_battery_range"//, distanceTransform)

case euVehicleBool = "eu_vehicle"

case fastChargerBrand = "fast_charger_brand"
case fastChargerPresentBool = "fast_charger_present"
case fastChargerType = "fast_charger_type"

Expand Down

0 comments on commit 09fcbdf

Please sign in to comment.