Class DefaultWallboxService
-
- All Implemented Interfaces:
-
de.jnkconsulting.e3dc.easyrscp.api.service.WallboxService
public final class DefaultWallboxService implements WallboxServiceImplementation to query the live data of the home power plant
- Since:
2.3
-
-
Constructor Summary
Constructors Constructor Description DefaultWallboxService(ConnectionPool connectionPool, FrameConverter<List<Integer>> convertConnectedIdsConverter, FrameConverter<List<WallboxInfo>> convertWallboxInfosConverter, FrameConverter<List<WallboxPowerState>> convertWallboxLiveDataConverter, FrameCreator<Void> createRequestConnectedWallboxes, FrameCreator<List<Integer>> createRequestWallboxInfos, FrameCreator<List<Integer>> createRequestWallboxLiveData)
-
Method Summary
Modifier and Type Method Description List<WallboxInfo>readConnectedWallboxes()List<WallboxPowerState>readPowerState(Integer ids)-
-
Constructor Detail
-
DefaultWallboxService
DefaultWallboxService(ConnectionPool connectionPool, FrameConverter<List<Integer>> convertConnectedIdsConverter, FrameConverter<List<WallboxInfo>> convertWallboxInfosConverter, FrameConverter<List<WallboxPowerState>> convertWallboxLiveDataConverter, FrameCreator<Void> createRequestConnectedWallboxes, FrameCreator<List<Integer>> createRequestWallboxInfos, FrameCreator<List<Integer>> createRequestWallboxLiveData)
- Parameters:
connectionPool- Connection pool to be usedconvertConnectedIdsConverter- Converter to create a list of Wallbox IDs out of a connected devices response frame.convertWallboxInfosConverter- Converter to create a list of Wallbox infos out of a frame.convertWallboxLiveDataConverter- Converter to create a list of Wallbox live data infos out of a frame.createRequestConnectedWallboxes- Creator for frames to query the connected Wallbox IDs.createRequestWallboxInfos- Creator for frames to query infos about the connected Wallboxes.createRequestWallboxLiveData- Creator for frames to query live power data from the given wallbozes.
-
-
Method Detail
-
readConnectedWallboxes
List<WallboxInfo> readConnectedWallboxes()
-
readPowerState
List<WallboxPowerState> readPowerState(Integer ids)
-
-
-
-