Class EdgeConfigNotification
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.EdgeConfigNotification
Represents a JSON-RPC Notification for OpenEMS Edge configuration.
{
"jsonrpc": "2.0",
"method": "edgeConfig",
"params": {
EdgeConfig.toJson()
}
}
-
Field Summary
Fields inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
JSONRPC_VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EdgeConfigNotification
from
(com.google.gson.JsonObject j) Parses aJsonObject
to aEdgeConfigNotification
.static EdgeConfigNotification
Parses aJsonrpcNotification
to aEdgeConfigNotification
.com.google.gson.JsonObject
Gets the paramsJsonObject
of theJsonrpcRequest
.Methods inherited from class io.openems.common.jsonrpc.base.AbstractJsonrpcRequest
getFullyQualifiedMethod, getMethod, toJsonObject
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
from, toString
-
Field Details
-
METHOD
- See Also:
-
-
Constructor Details
-
EdgeConfigNotification
-
-
Method Details
-
from
public static EdgeConfigNotification from(com.google.gson.JsonObject j) throws OpenemsError.OpenemsNamedException Parses aJsonObject
to aEdgeConfigNotification
.- Parameters:
j
- theJsonObject
- Returns:
- the
EdgeConfigNotification
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
from
public static EdgeConfigNotification from(JsonrpcNotification n) throws OpenemsError.OpenemsNamedException Parses aJsonrpcNotification
to aEdgeConfigNotification
.- Parameters:
n
- theJsonrpcNotification
- Returns:
- the
EdgeConfigNotification
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
getParams
public com.google.gson.JsonObject getParams()Description copied from class:AbstractJsonrpcRequest
Gets the paramsJsonObject
of theJsonrpcRequest
.- Specified by:
getParams
in classAbstractJsonrpcRequest
- Returns:
- the params as
JsonObject
-
getConfig
-