Class QueryHistoricTimeseriesEnergyPerPeriodResponse
java.lang.Object
io.openems.common.jsonrpc.base.JsonrpcMessage
io.openems.common.jsonrpc.base.JsonrpcResponse
io.openems.common.jsonrpc.base.JsonrpcResponseSuccess
io.openems.common.jsonrpc.response.QueryHistoricTimeseriesEnergyPerPeriodResponse
Represents a JSON-RPC Response for 'queryHistoricTimeseriesEnergyPerPeriod'.
{ "jsonrpc": "2.0", "id": "UUID", "result": { "timestamps": [ '2011-12-03T00:00:00Z',... ], "data": { "componentId/channelId": [ value1, value2,... ] } } }
-
Field Summary
Fields inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
JSONRPC_VERSION
-
Constructor Summary
ConstructorDescriptionQueryHistoricTimeseriesEnergyPerPeriodResponse
(SortedMap<ZonedDateTime, SortedMap<ChannelAddress, com.google.gson.JsonElement>> table) QueryHistoricTimeseriesEnergyPerPeriodResponse
(UUID id, SortedMap<ZonedDateTime, SortedMap<ChannelAddress, com.google.gson.JsonElement>> table) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonObject
Gets the result of thisJsonrpcResponseSuccess
.Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcResponseSuccess
from, toJsonObject
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcResponse
from, getId
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
toString
-
Constructor Details
-
QueryHistoricTimeseriesEnergyPerPeriodResponse
public QueryHistoricTimeseriesEnergyPerPeriodResponse(SortedMap<ZonedDateTime, SortedMap<ChannelAddress, com.google.gson.JsonElement>> table) -
QueryHistoricTimeseriesEnergyPerPeriodResponse
public QueryHistoricTimeseriesEnergyPerPeriodResponse(UUID id, SortedMap<ZonedDateTime, SortedMap<ChannelAddress, com.google.gson.JsonElement>> table)
-
-
Method Details
-
getResult
public com.google.gson.JsonObject getResult()Description copied from class:JsonrpcResponseSuccess
Gets the result of thisJsonrpcResponseSuccess
.- Specified by:
getResult
in classJsonrpcResponseSuccess
- Returns:
- a JsonObject with the 'result' property of the response
-