Package-level declarations

Types

Link copied to clipboard
class EVPort(    val locId: String,     val portId: String,     val merchantPortId: String,     val pricePerHour: String,     val transactionFee: Double,     val chargingSpeed: String,     val point: Point?,     val connectorDescription: String,     val isFastCharge: Boolean,     val chargingPower: Int?,     val displayName: String?,     val network: Int,     val availability: Int) : Port

Functions

Link copied to clipboard
fun EVPort.timeToCharge(currentChargePercent: Float, targetChargePercent: Float, batteryCapacityInKw: Int): Int

Returns time to charge in minutes provided EVPort.chargingPower is not null and the remainder charging percent between targetChargePercent and currentChargePercent is greater than 0. Default return value is 0 minutes.