TNEntityEvContext
@objcMembers
open class TNEntityEvContext : NSObject, Codable
Undocumented
-
Required, current remaining electric energy in percentage.
Declaration
Swift
public var stateOfCharge: Double -
Required, energy in percentage that makes the driver feel safe, support range [5, 50], e.g. 10
Declaration
Swift
public var lowEnergyThreshold: Double -
Required, current remaining range in Km.
Declaration
Swift
public var remainingRangeInKm: Double -
Undocumented
Declaration
Swift
public init(_ stateOfCharge: Double, _ lowEnergyThreshold: Double, _ remainingRangeInKm: Double) -
Validates all properties.
isValid- is true if validation was successfulmessage- contains error string if validation failed
Declaration
Swift
public func validate() -> (isValid: Bool, message: String)Return Value
Tuple
(isValid: Bool, message: String).
TNEntityEvContext Class Reference