EnergyMix

@Serializable
data class EnergyMix(    val isGreenEnergy: Boolean,     val energySources: EnergySource? = null,     val environImpact: EnvironmentalImpact? = null,     val supplierName: String? = null,     val energyProductName: String? = null)

This type is used to specify the energy mix and environmental impact of the supplied energy at a location or in a tariff.

Parameters

isGreenEnergy

True if 100% from regenerative sources. (CO2 and nuclear waste is zero)

energySources

Key-value pairs (enum + percentage) of energy sources of this location’s tariff.

environImpact

Key-value pairs (enum + percentage) of nuclear waste and CO2 exhaust of this location’s tariff.

supplierName

Name of the energy supplier, delivering the energy for this location or tariff.

energyProductName

Name of the energy suppliers product/tariff plan used at this location.

Constructors

Link copied to clipboard
constructor(    isGreenEnergy: Boolean,     energySources: EnergySource? = null,     environImpact: EnvironmentalImpact? = null,     supplierName: String? = null,     energyProductName: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val supplierName: String? = null