Class GetEdgesChannelsValuesResponse
java.lang.Object
io.openems.common.jsonrpc.base.JsonrpcMessage
io.openems.common.jsonrpc.base.JsonrpcResponse
io.openems.common.jsonrpc.base.JsonrpcResponseSuccess
io.openems.backend.common.jsonrpc.response.GetEdgesChannelsValuesResponse
Represents a JSON-RPC Response for
GetEdgesChannelsValuesRequest
.
{ "jsonrpc": "2.0", "id": "UUID", "result": { [Edge-ID: string]: [{ [Channel-Address: string]: number }] } }
-
Field Summary
Fields inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
JSONRPC_VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addValue
(String edgeId, ChannelAddress channel, com.google.gson.JsonElement value) Adds a Value to the JSON-RPC Response.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
-
GetEdgesChannelsValuesResponse
public GetEdgesChannelsValuesResponse() -
GetEdgesChannelsValuesResponse
-
-
Method Details
-
addValue
Adds a Value to the JSON-RPC Response.- Parameters:
edgeId
- the Edge-IDchannel
- theChannelAddress
value
- the value
-
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
-