Class SetUserAlertingConfigsRequest
java.lang.Object
io.openems.common.jsonrpc.base.JsonrpcMessage
io.openems.common.jsonrpc.base.AbstractJsonrpcRequest
io.openems.common.jsonrpc.base.JsonrpcRequest
io.openems.backend.common.jsonrpc.request.SetUserAlertingConfigsRequest
Represents a JSON-RPC Request for 'getEdgeConfig'.
{ "jsonrpc": "2.0", "id": "UUID", "method": "setUserAlertingConfigs", "params": { "edgeId": string, "userSettings": [ { userId: string, delayTime": number } ] }
-
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
-
Method Summary
Modifier and TypeMethodDescriptionfrom
(JsonrpcRequest request) CreateSetUserAlertingConfigsRequest
from a templateJsonrpcRequest
.Get the Edge-ID.com.google.gson.JsonObject
Gets the paramsJsonObject
of theJsonrpcRequest
.Get list ofUserAlertingSetting
.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:
-
-
Method Details
-
from
public static SetUserAlertingConfigsRequest from(JsonrpcRequest request) throws OpenemsError.OpenemsNamedException CreateSetUserAlertingConfigsRequest
from a templateJsonrpcRequest
.- Parameters:
request
- the templateJsonrpcRequest
- Returns:
- the
SetUserAlertingConfigsRequest
- Throws:
OpenemsError.OpenemsNamedException
- on parse error
-
getEdgeId
Get the Edge-ID.- Returns:
- the Edge-ID
-
getUserSettings
Get list ofUserAlertingSetting
.- Returns:
- list of
UserAlertingSetting
-
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
-