Class GetApp
java.lang.Object
io.openems.edge.core.appmanager.jsonrpc.GetApp
Gets the available
OpenemsApp
.
Request:
{ "jsonrpc": "2.0", "id": "UUID", "method": "getApp", "params": {} }
Response:
{ "jsonrpc": "2.0", "id": "UUID", "result": { app: { "categorys": [{ "name": string (OpenemsAppCategory enum), "readableName": string }], "cardinality": string (OpenemsAppUsage enum), "appId": string, "name": string, "status": { "status": string (OpenemsAppStatus enum), "errorCompatibleMessages": string[], "errorInstallableMessages": string[] }, "image": string (base64), "instanceIds": UUID[], } } }
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final com.google.gson.JsonObject
createJsonObjectOf
(OpenemsApp app, Validator validator, List<OpenemsAppInstance> instantiatedApps, Language language) Creates aJsonObject
of the givenOpenemsApp
.
-
Field Details
-
METHOD
- See Also:
-
-
Constructor Details
-
GetApp
public GetApp()
-
-
Method Details
-
createJsonObjectOf
public static final com.google.gson.JsonObject createJsonObjectOf(OpenemsApp app, Validator validator, List<OpenemsAppInstance> instantiatedApps, Language language) throws OpenemsError.OpenemsNamedException Creates aJsonObject
of the givenOpenemsApp
.Also adds the status of the app and the instances of the app.
- Parameters:
app
- theOpenemsApp
validator
- aValidator
to get the status of the appOpenemsAppStatus
instantiatedApps
- all instanceslanguage
- theLanguage
- Returns:
- the created
JsonObject
- Throws:
OpenemsError.OpenemsNamedException
- on error
-