public class SetChannelValueRequest extends JsonrpcRequest
{ "jsonrpc": "2.0", "id": "UUID", "method": "setChannelValue", "params": { "componentId": string, "channelId": string, "value": any } }
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
METHOD |
JSONRPC_VERSION
Constructor and Description |
---|
SetChannelValueRequest(java.lang.String componentId,
java.lang.String channelId,
com.google.gson.JsonElement value) |
SetChannelValueRequest(java.util.UUID id,
java.lang.String componentId,
java.lang.String channelId,
com.google.gson.JsonElement value) |
Modifier and Type | Method and Description |
---|---|
static SetChannelValueRequest |
from(JsonrpcRequest r) |
ChannelAddress |
getChannelAddress() |
java.lang.String |
getChannelId() |
java.lang.String |
getComponentId() |
com.google.gson.JsonObject |
getParams() |
com.google.gson.JsonElement |
getValue() |
getId, toJsonObject
getMethod
from, from, toString
public static final java.lang.String METHOD
public SetChannelValueRequest(java.lang.String componentId, java.lang.String channelId, com.google.gson.JsonElement value)
public SetChannelValueRequest(java.util.UUID id, java.lang.String componentId, java.lang.String channelId, com.google.gson.JsonElement value)
public static SetChannelValueRequest from(JsonrpcRequest r) throws OpenemsError.OpenemsNamedException
public com.google.gson.JsonObject getParams()
getParams
in class AbstractJsonrpcRequest
public java.lang.String getComponentId()
public java.lang.String getChannelId()
public ChannelAddress getChannelAddress()
public com.google.gson.JsonElement getValue()