Package-level declarations
Types
Link copied to clipboard
class EVPort(val networkName: String, val locId: String, val portId: String, val merchantPortId: String, val pricePerHour: String, val chargingSpeed: String, val point: Point?, val connectorDescription: String, val isFastCharge: Boolean, val name: String, val chargingPower: 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.