Package io.openems.common.jsonrpc.base
Class JsonrpcResponseSuccess
java.lang.Object
io.openems.common.jsonrpc.base.JsonrpcMessage
io.openems.common.jsonrpc.base.JsonrpcResponse
io.openems.common.jsonrpc.base.JsonrpcResponseSuccess
- Direct Known Subclasses:
AddEdgeToUserResponse
,AppCenterGetInstalledAppsResponse
,AppCenterGetPossibleAppsResponse
,AppCenterGetRegisteredKeysResponse
,AppCenterIsAppFreeResponse
,AppCenterIsKeyApplicableResponse
,AuthenticatedRpcResponse
,AuthenticateResponse
,Base64PayloadResponse
,EdgeRpcResponse
,ExecuteSimulationResponse
,ExecuteSystemCommandResponse
,ExecuteSystemRestartResponse
,GenericJsonrpcResponseSuccess
,GetDeviceResponse
,GetEdgeConfigResponse
,GetEdgeResponse
,GetEdgesChannelsValuesResponse
,GetEdgesResponse
,GetEdgesStatusResponse
,GetFieldNamesResponse
,GetMetersResponse
,GetModbusProtocolResponse
,GetNetworkConfigResponse
,GetScheduleResponse
,GetSystemUpdateStateResponse
,GetUserAlertingConfigsResponse
,GetUserInformationResponse
,QueryHistoricTimeseriesDataResponse
,QueryHistoricTimeseriesEnergyPerPeriodResponse
,QueryHistoricTimeseriesEnergyResponse
Represents a JSON-RPC Success Response.
{ "jsonrpc": "2.0", "id": "UUID", "result": {} }
- See Also:
-
Field Summary
Fields inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
JSONRPC_VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic JsonrpcResponseSuccess
from
(com.google.gson.JsonObject j) Parses the JSON-Object to a JSON-RPC Success Response.abstract com.google.gson.JsonObject
Gets the result of thisJsonrpcResponseSuccess
.com.google.gson.JsonObject
Gets theJsonObject
representation of thisJsonrpcMessage
.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
-
JsonrpcResponseSuccess
-
-
Method Details
-
from
public static JsonrpcResponseSuccess from(com.google.gson.JsonObject j) throws OpenemsError.OpenemsNamedException Parses the JSON-Object to a JSON-RPC Success Response.- Parameters:
j
- the JSON-Object- Returns:
- the JSON-RPC Success Response
- Throws:
OpenemsError.OpenemsNamedException
- if it was not a Success Response
-
toJsonObject
public com.google.gson.JsonObject toJsonObject()Description copied from class:JsonrpcMessage
Gets theJsonObject
representation of thisJsonrpcMessage
.- Overrides:
toJsonObject
in classJsonrpcResponse
- Returns:
- a
JsonObject
-
getResult
public abstract com.google.gson.JsonObject getResult()Gets the result of thisJsonrpcResponseSuccess
.- Returns:
- a JsonObject with the 'result' property of the response
-