Class ResendDataNotification
java.lang.Object
io.openems.common.jsonrpc.base.JsonrpcMessage
io.openems.common.jsonrpc.base.AbstractJsonrpcRequest
io.openems.common.jsonrpc.base.JsonrpcNotification
io.openems.common.jsonrpc.notification.AbstractDataNotification
io.openems.common.jsonrpc.notification.ResendDataNotification
Represents a JSON-RPC Notification for resending aggregated data.
{
"jsonrpc": "2.0",
"method": "resendData",
"params": {
[timestamp: epoch in milliseconds]: {
[channelAddress]: JsonElement
}
}
}
-
Field Summary
Fields inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
JSONRPC_VERSION
-
Constructor Summary
ConstructorDescriptionResendDataNotification
(com.google.common.collect.TreeBasedTable<Long, String, com.google.gson.JsonElement> data) -
Method Summary
Modifier and TypeMethodDescriptionstatic ResendDataNotification
from
(JsonrpcNotification notification) Parses aJsonrpcNotification
to aResendDataNotification
.Methods inherited from class io.openems.common.jsonrpc.notification.AbstractDataNotification
add, add, getData, getParams, parseParams
Methods inherited from class io.openems.common.jsonrpc.base.AbstractJsonrpcRequest
getFullyQualifiedMethod, getMethod, toJsonObject
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
from, from, toString
-
Field Details
-
METHOD
- See Also:
-
-
Constructor Details
-
ResendDataNotification
-
-
Method Details
-
from
public static ResendDataNotification from(JsonrpcNotification notification) throws OpenemsError.OpenemsNamedException Parses aJsonrpcNotification
to aResendDataNotification
.- Parameters:
notification
- theJsonrpcNotification
- Returns:
- the
ResendDataNotification
- Throws:
OpenemsError.OpenemsNamedException
- on error
-