Class EdgesCurrentDataNotification
- java.lang.Object
-
- io.openems.common.jsonrpc.base.JsonrpcMessage
-
- io.openems.common.jsonrpc.base.AbstractJsonrpcRequest
-
- io.openems.common.jsonrpc.base.JsonrpcNotification
-
- io.openems.backend.b2bwebsocket.jsonrpc.notification.EdgesCurrentDataNotification
-
public class EdgesCurrentDataNotification extends JsonrpcNotification
Represents a JSON-RPC Notification for sending the current data of all subscribed Channels of multiple Edges.{ "jsonrpc": "2.0", "method": "edgesCurrentData", "params": { [Edge-ID: string]: [{ [Channel-Address: string]: number }] } }
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
METHOD
-
Fields inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
JSONRPC_VERSION
-
-
Constructor Summary
Constructors Constructor Description EdgesCurrentDataNotification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addValue(java.lang.String edgeId, ChannelAddress channel, com.google.gson.JsonElement value)
Adds a value to the notification.com.google.gson.JsonObject
getParams()
Gets the paramsJsonObject
of theJsonrpcRequest
.-
Methods inherited from class io.openems.common.jsonrpc.base.AbstractJsonrpcRequest
getFullyQualifiedMethod, getMethod, toJsonObject
-
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
from, from, toString
-
-
-
-
Field Detail
-
METHOD
public static final java.lang.String METHOD
- See Also:
- Constant Field Values
-
-
Method Detail
-
addValue
public void addValue(java.lang.String edgeId, ChannelAddress channel, com.google.gson.JsonElement value)
Adds a value to the notification.- Parameters:
edgeId
- the Edge-IDchannel
- theChannelAddress
value
- the value
-
getParams
public com.google.gson.JsonObject getParams()
Description copied from class:AbstractJsonrpcRequest
Gets the paramsJsonObject
of theJsonrpcRequest
.- Specified by:
getParams
in classAbstractJsonrpcRequest
- Returns:
- the params as
JsonObject
-
-