public class GenericJsonrpcNotification extends JsonrpcNotification
{ "jsonrpc": "2.0", "method": string, "params": {} }
JSONRPC_VERSION
Constructor and Description |
---|
GenericJsonrpcNotification(java.lang.String method,
com.google.gson.JsonObject params) |
Modifier and Type | Method and Description |
---|---|
static GenericJsonrpcNotification |
from(com.google.gson.JsonObject j) |
static GenericJsonrpcNotification |
from(java.lang.String json) |
com.google.gson.JsonObject |
getParams() |
getMethod, toJsonObject
toString
public GenericJsonrpcNotification(java.lang.String method, com.google.gson.JsonObject params)
public static GenericJsonrpcNotification from(java.lang.String json) throws OpenemsError.OpenemsNamedException
public static GenericJsonrpcNotification from(com.google.gson.JsonObject j) throws OpenemsError.OpenemsNamedException
public com.google.gson.JsonObject getParams()
getParams
in class AbstractJsonrpcRequest