Price

data class Price(    val value: Double,     val currency: Currency? = null,     val volumeUnit: VolumeUnit? = null)

Represents the fuel price at a gas station.

Parameters

value

Numerical value of the price.

currency

Currency (e.g. Euro, USD etc.).

volumeUnit

Unit of volume (e.g. Liter)

Constructors

Link copied to clipboard
fun Price(    value: Double,     currency: Currency? = null,     volumeUnit: VolumeUnit? = null)

Properties

Link copied to clipboard
val currency: Currency? = null
Link copied to clipboard
val value: Double
Link copied to clipboard
val volumeUnit: VolumeUnit? = null