Package-level declarations

This package contains panel definitions and view models that can be used to build an EVCHARGING frontend.

Types

Link copied to clipboard
abstract class EvChargingModalPanelBase(frontendContext: FrontendContext, evChargingMediatorServiceApi: EvChargingMediatorServiceApi) : ModalPanel

EV Charging Modal panel that displays a common UI for different eMSPs.

Link copied to clipboard

EV Charging Overlay panel that displays popover and error toast message.

class TtiviEvChargingChargingPointListItemViewModel(val connectorImage: DrawableResolver? = null, val connectorName: StringResolver? = null, val connectorType: StringResolver? = null, val connectorPower: StringResolver? = null, val chargingUnitCost: StringResolver? = null, val approximateChargingTime: TtInformationControlViewModel? = null, val onClick: () -> Unit? = null)

A ViewModel which is used to populate an item in charging point list in the EV charging modal panel.

Link copied to clipboard
class TtiviEvChargingChargingPointListView @JvmOverloads constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int = 0) : ConstraintLayout

The content view for showing the list of ChargingPoint

class TtiviEvChargingChargingPointListViewModel(val title: StringResolver? = null, val subtitle: StringResolver? = null, val chargingPointList: List<ChargingPoint>? = null, val chargingUnitCost: StringResolver? = null, val approximateChargingTime: StringResolver? = null, val batteryChargeLevelTreshold: StringResolver? = null, val onListItemClicked: (ChargingPointId) -> Unit? = null) : ViewModel

A ViewModel which can be used to populate Ev Charging modal panel with list of chargers.

Link copied to clipboard
class TtiviEvChargingHeaderView @JvmOverloads constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int = 0) : ConstraintLayout

The content view for showing the header information in Ev Charging modal panel.

Link copied to clipboard
class TtiviEvChargingHeaderViewModel(val image: DrawableResolver? = null, val title: StringResolver? = null, val chargingUnitCost: StringResolver? = null, val chargingRemainingTime: StringResolver? = null, val batteryChargeLevelTreshold: StringResolver? = null, val serviceProviderName: StringResolver? = null) : ViewModel

A ViewModel which can be used to populate Ev Charging modal panel header information.

Link copied to clipboard
class TtiviEvChargingMessageView @JvmOverloads constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int = 0) : ConstraintLayout

The content view for showing the message information in Ev Charging modal panel.

Link copied to clipboard
class TtiviEvChargingMessageViewModel(val message: StringResolver?, val image: DrawableResolver? = null, val isImageAnimated: Boolean = false)

A ViewModel which can be used to populate Ev Charging modal panel with a text and/or an image.

Link copied to clipboard

A ViewModel for the not charging state shown in Ev Charging modal panel.

Link copied to clipboard

A ViewModel for showing the plug in cable message in Ev Charging modal panel.

A ViewModel for showing waiting for charger to respond message in Ev Charging modal panel.