public abstract class JsonrpcResponseSuccess extends JsonrpcResponse
{ "jsonrpc": "2.0", "id": "UUID", "result": {} }
JSONRPC_VERSION
Constructor and Description |
---|
JsonrpcResponseSuccess(java.util.UUID id) |
Modifier and Type | Method and Description |
---|---|
static JsonrpcResponseSuccess |
from(com.google.gson.JsonObject j)
Parses the JSON-Object to a JSON-RPC Success Response.
|
abstract com.google.gson.JsonObject |
getResult() |
com.google.gson.JsonObject |
toJsonObject() |
from, getId
toString
public static JsonrpcResponseSuccess from(com.google.gson.JsonObject j) throws OpenemsError.OpenemsNamedException
j
- the JSON-ObjectOpenemsError.OpenemsNamedException
- if it was not a Success Responsepublic com.google.gson.JsonObject toJsonObject()
toJsonObject
in class JsonrpcResponse
public abstract com.google.gson.JsonObject getResult()