Class AppCenterAddInstallInstanceHistoryRequest
java.lang.Object
io.openems.common.jsonrpc.base.JsonrpcMessage
io.openems.common.jsonrpc.base.AbstractJsonrpcRequest
io.openems.common.jsonrpc.base.JsonrpcRequest
io.openems.common.jsonrpc.request.AppCenterAddInstallInstanceHistoryRequest
Represents a JSON-RPC Request to add a install app history entry.
NOTE: in order to get this request handled by the backend the request needs
to be wrapped in a AppCenterRequest
.
This is used by Edge.
{ "jsonrpc": "2.0", "id": "UUID", "method": "addInstallInstanceHistory", "params": { "key": String, "appId": String, "instanceId": UUID, "userId": String } }
-
Field Summary
Modifier and TypeFieldDescriptionfinal String
final UUID
final String
static final String
final String
Fields 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
ConstructorDescriptionAppCenterAddInstallInstanceHistoryRequest
(String key, String appId, UUID instanceId, String userId) -
Method Summary
Modifier and TypeMethodDescriptionstatic final AppCenterAddInstallInstanceHistoryRequest
Creates aAppCenterAddInstallInstanceHistoryRequest
from aJsonrpcRequest
.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:
-
key
-
appId
-
instanceId
-
userId
-
-
Constructor Details
-
AppCenterAddInstallInstanceHistoryRequest
-
-
Method Details
-
from
public static final AppCenterAddInstallInstanceHistoryRequest from(JsonrpcRequest r) throws OpenemsError.OpenemsNamedException Creates aAppCenterAddInstallInstanceHistoryRequest
from aJsonrpcRequest
.- Parameters:
r
- theJsonrpcRequest
- Returns:
- a
AppCenterAddInstallInstanceHistoryRequest
- Throws:
OpenemsError.OpenemsNamedException
- on 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
-