Class DeviceRegistrationResponse
java.lang.Object
de.iip_ecosphere.platform.deviceMgt.registry.DeviceRegistrationResponse
Represents the response of a device registration process/onboarding.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a message if the registration was not successful.booleanReturns whether the registration was successful.voidsetMessage(String message) Defines the message if the registration was not successful.voidsetSuccessful(boolean successful) Defines whether the registration was successful.
-
Field Details
-
successful
private boolean successful -
message
-
-
Constructor Details
-
DeviceRegistrationResponse
public DeviceRegistrationResponse()
-
-
Method Details
-
isSuccessful
public boolean isSuccessful()Returns whether the registration was successful.- Returns:
truefor successful,falseelse
-
setSuccessful
public void setSuccessful(boolean successful) Defines whether the registration was successful. [required for JSON]- Parameters:
successful-truefor successful,falseelse
-
getMessage
Returns a message if the registration was not successful.- Returns:
- the message, may be null
-
setMessage
Defines the message if the registration was not successful. [required for JSON]- Parameters:
message- the message, may be null
-