Package-level declarations

Types

Link copied to clipboard
class EVPort(val locId: String, val portId: String, val chargingPower: Int?, val displayName: String?, val merchantPortId: String, val network: Int, val portLevel: ChargingAdapterLevel, val portStatus: Int, val coordinate: Point?, val pricePerHour: String, val transactionFee: Double, val chargingSpeed: String, val connectorDescription: String, val availability: Int?, val totalPort: 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.