Class AuthenticatedRpcResponse
java.lang.Object
io.openems.common.jsonrpc.base.JsonrpcMessage
io.openems.common.jsonrpc.base.JsonrpcResponse
io.openems.common.jsonrpc.base.JsonrpcResponseSuccess
io.openems.common.jsonrpc.response.AuthenticatedRpcResponse
Represents a JSON-RPC Response for 'authenticatedRpc'.
{
"jsonrpc": "2.0",
"id": "UUID",
"result": {
"payload": JsonrpcResponseSuccess
}
}
-
Field Summary
Fields inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
JSONRPC_VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AuthenticatedRpcResponse
Parses aJsonrpcResponseSuccess
to aAuthenticatedRpcResponse
.com.google.gson.JsonObject
Gets the result of thisJsonrpcResponseSuccess
.Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcResponseSuccess
from, toJsonObject
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcResponse
from, getId
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
toString
-
Constructor Details
-
AuthenticatedRpcResponse
-
-
Method Details
-
from
public static AuthenticatedRpcResponse from(JsonrpcResponseSuccess r) throws OpenemsError.OpenemsNamedException Parses aJsonrpcResponseSuccess
to aAuthenticatedRpcResponse
.- Parameters:
r
- theJsonrpcResponseSuccess
- Returns:
- the
AuthenticatedRpcResponse
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
getPayload
-
getResult
public com.google.gson.JsonObject getResult()Description copied from class:JsonrpcResponseSuccess
Gets the result of thisJsonrpcResponseSuccess
.- Specified by:
getResult
in classJsonrpcResponseSuccess
- Returns:
- a JsonObject with the 'result' property of the response
-