Class GetAppAssistant
java.lang.Object
io.openems.edge.core.appmanager.jsonrpc.GetAppAssistant
- All Implemented Interfaces:
EndpointRequestType<GetAppAssistant.Request,
GetAppAssistant.Response>
public class GetAppAssistant
extends Object
implements EndpointRequestType<GetAppAssistant.Request,GetAppAssistant.Response>
Gets the App-Assistant for a
OpenemsApp
.
Request:
{ "jsonrpc": "2.0", "id": "UUID", "method": "getAppAssistant", "params": { "appId": string } }
Response:
{
"jsonrpc": "2.0",
"id": "UUID",
"result": {
... AppAssistant.serializer()
}
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
static final record
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the request method.Gets theJsonSerializer
for the request.Gets theJsonSerializer
for the response.
-
Constructor Details
-
GetAppAssistant
public GetAppAssistant()
-
-
Method Details
-
getMethod
Description copied from interface:EndpointRequestType
Gets the name of the request method.- Specified by:
getMethod
in interfaceEndpointRequestType<GetAppAssistant.Request,
GetAppAssistant.Response> - Returns:
- the method name
-
getRequestSerializer
Description copied from interface:EndpointRequestType
Gets theJsonSerializer
for the request. Used to convert the received json into a java object.- Specified by:
getRequestSerializer
in interfaceEndpointRequestType<GetAppAssistant.Request,
GetAppAssistant.Response> - Returns:
- the request
JsonSerializer
-
getResponseSerializer
Description copied from interface:EndpointRequestType
Gets theJsonSerializer
for the response. Used to convert the response java object into a json string.- Specified by:
getResponseSerializer
in interfaceEndpointRequestType<GetAppAssistant.Request,
GetAppAssistant.Response> - Returns:
- the response
JsonSerializer
-