Class AppCenterGetPossibleAppsResponse
java.lang.Object
io.openems.common.jsonrpc.base.JsonrpcMessage
io.openems.common.jsonrpc.base.JsonrpcResponse
io.openems.common.jsonrpc.base.JsonrpcResponseSuccess
io.openems.common.jsonrpc.response.AppCenterGetPossibleAppsResponse
Represents a JSON-RPC Response for getting all possible apps to a key.
{
"jsonrpc": "2.0",
"id": "UUID",
"result": {
"bundles": AppCenterGetPossibleAppsResponse.Bundle
[]
}
}
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
-
Field Summary
Modifier and TypeFieldDescriptionFields inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
JSONRPC_VERSION
-
Constructor Summary
ConstructorDescriptionAppCenterGetPossibleAppsResponse
(UUID id, List<AppCenterGetPossibleAppsResponse.Bundle> possibleApps) -
Method Summary
Modifier and TypeMethodDescriptionstatic final AppCenterGetPossibleAppsResponse
Creates aAppCenterGetPossibleAppsResponse
from aJsonrpcResponseSuccess
.static final AppCenterGetPossibleAppsResponse
Creates aAppCenterGetPossibleAppsResponse
from aList
of bundles of which every bundle has aList
ofAppCenterGetPossibleAppsResponse.App
.com.google.gson.JsonObject
Gets the result of thisJsonrpcResponseSuccess
.Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcResponseSuccess
from, toJsonObject
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcResponse
from, getId
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
toString
-
Field Details
-
possibleApps
-
-
Constructor Details
-
AppCenterGetPossibleAppsResponse
public AppCenterGetPossibleAppsResponse(UUID id, List<AppCenterGetPossibleAppsResponse.Bundle> possibleApps)
-
-
Method Details
-
from
public static final AppCenterGetPossibleAppsResponse from(JsonrpcResponseSuccess r) throws OpenemsError.OpenemsNamedException Creates aAppCenterGetPossibleAppsResponse
from aJsonrpcResponseSuccess
.- Parameters:
r
- theJsonrpcResponseSuccess
- Returns:
- a
AppCenterGetPossibleAppsResponse
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
from
public static final AppCenterGetPossibleAppsResponse from(UUID id, com.google.gson.JsonArray bundles) Creates aAppCenterGetPossibleAppsResponse
from aList
of bundles of which every bundle has aList
ofAppCenterGetPossibleAppsResponse.App
.- Parameters:
id
- id of the requestbundles
- the bundles- Returns:
- the
AppCenterGetPossibleAppsResponse
-
getResult
public com.google.gson.JsonObject getResult()Description copied from class:JsonrpcResponseSuccess
Gets the result of thisJsonrpcResponseSuccess
.- Specified by:
getResult
in classJsonrpcResponseSuccess
- Returns:
- a JsonObject with the 'result' property of the response
-