Class Get24HoursPredictionRequest
java.lang.Object
io.openems.common.jsonrpc.base.JsonrpcMessage
io.openems.common.jsonrpc.base.AbstractJsonrpcRequest
io.openems.common.jsonrpc.base.JsonrpcRequest
io.openems.edge.core.predictormanager.Get24HoursPredictionRequest
Wraps a JSON-RPC Request to query a 24 Hours Prediction.
{ "jsonrpc": "2.0", "id": "UUID", "method": "get24HoursPrediction", "params": { "channels": string[] } }
-
Field Summary
FieldsFields inherited from class io.openems.common.jsonrpc.base.JsonrpcRequest
DEFAULT_TIMEOUT_SECONDS, id, NO_TIMEOUT, timeoutOpt
Fields inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
JSONRPC_VERSION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Get24HoursPredictionRequest
CreateGet24HoursPredictionRequest
from a templateJsonrpcRequest
.Gets theChannelAddress
es.com.google.gson.JsonObject
Gets the paramsJsonObject
of theJsonrpcRequest
.Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcRequest
getId, getTimeout, toJsonObject
Methods inherited from class io.openems.common.jsonrpc.base.AbstractJsonrpcRequest
getFullyQualifiedMethod, getMethod
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
from, from, toString
-
Field Details
-
METHOD
- See Also:
-
-
Constructor Details
-
Get24HoursPredictionRequest
-
-
Method Details
-
from
public static Get24HoursPredictionRequest from(JsonrpcRequest r) throws OpenemsError.OpenemsNamedException CreateGet24HoursPredictionRequest
from a templateJsonrpcRequest
.- Parameters:
r
- the templateJsonrpcRequest
- Returns:
- the
Get24HoursPredictionRequest
- Throws:
OpenemsError.OpenemsNamedException
- on parse error
-
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
-
getChannels
Gets theChannelAddress
es.- Returns:
- a list of
ChannelAddress
-