Class AppCenterIsKeyApplicableResponse
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.AppCenterIsKeyApplicableResponse
Represents a JSON-RPC Response to validate if a key can be used.
success: { "jsonrpc": "2.0", "id": "UUID", "result": { "isKeyApplicable": boolean "additionalInfo": { "keyId": String, "bundles":AppCenterGetPossibleAppsResponse.Bundle
[], "registrations":AppCenterIsKeyApplicableResponse.Registration
[], "usages":AppCenterIsKeyApplicableResponse.Usage
[] } } }
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
static final class
-
Field Summary
Modifier and TypeFieldDescriptionfinal boolean
Fields inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
JSONRPC_VERSION
-
Constructor Summary
ConstructorDescriptionAppCenterIsKeyApplicableResponse
(UUID id, boolean isKeyApplicable, AppCenterIsKeyApplicableResponse.AdditionalInfo additionalInfo) -
Method Summary
Modifier and TypeMethodDescriptionstatic final AppCenterIsKeyApplicableResponse
Creates aAppCenterIsKeyApplicableResponse
from aJsonrpcResponseSuccess
.static final AppCenterIsKeyApplicableResponse
Creates aAppCenterIsKeyApplicableResponse
from aJsonObject
.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
-
isKeyApplicable
public final boolean isKeyApplicable -
additionalInfo
-
-
Constructor Details
-
AppCenterIsKeyApplicableResponse
public AppCenterIsKeyApplicableResponse(UUID id, boolean isKeyApplicable, AppCenterIsKeyApplicableResponse.AdditionalInfo additionalInfo)
-
-
Method Details
-
from
public static final AppCenterIsKeyApplicableResponse from(JsonrpcResponseSuccess r) throws OpenemsError.OpenemsNamedException Creates aAppCenterIsKeyApplicableResponse
from aJsonrpcResponseSuccess
.- Parameters:
r
- theJsonrpcResponseSuccess
- Returns:
- a
AppCenterIsKeyApplicableResponse
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
from
public static final AppCenterIsKeyApplicableResponse from(UUID id, com.google.gson.JsonObject result) throws OpenemsError.OpenemsNamedException Creates aAppCenterIsKeyApplicableResponse
from aJsonObject
.- Parameters:
id
- the id of the requestresult
- theJsonObject
- Returns:
- a
AppCenterIsKeyApplicableResponse
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
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
-