Package io.openems.common.jsonrpc.base
Class DeprecatedJsonrpcNotification
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.base.DeprecatedJsonrpcNotification
Represents a wrapper around JSON-RPC Notification for compatibility with
deprecated OpenEMS Edge.
{ "..." }
-
Field Summary
Fields inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
JSONRPC_VERSION
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecatedJsonrpcNotification
(com.google.gson.JsonObject jMessage) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonObject
Gets the paramsJsonObject
of theJsonrpcRequest
.com.google.gson.JsonObject
Gets theJsonObject
representation of thisJsonrpcMessage
.Methods inherited from class io.openems.common.jsonrpc.base.AbstractJsonrpcRequest
getFullyQualifiedMethod, getMethod
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
from, from, toString
-
Constructor Details
-
DeprecatedJsonrpcNotification
Deprecated.
-
-
Method Details
-
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
-
toJsonObject
public com.google.gson.JsonObject toJsonObject()Description copied from class:JsonrpcMessage
Gets theJsonObject
representation of thisJsonrpcMessage
.- Overrides:
toJsonObject
in classAbstractJsonrpcRequest
- Returns:
- a
JsonObject
-