LastDataSoc

class LastDataSoc(val socValue: Double, val updateTimeUtc: Instant?) : BaseLastDataField

Represents the last known SoC of the vehicle

Constructors

Link copied to clipboard
constructor(socValue: Double, updateTimeUtc: Instant?)

Properties

Link copied to clipboard

vehicle's SoC in %

Link copied to clipboard

the timestamp of the associated data

Functions

Link copied to clipboard
fun getDataFreshness(instant: Instant): Long?

Gets duration in seconds between updateTimeUtc and instant