Package org.openhab.core.thing.firmware
Class FirmwareUpdateResultInfo
java.lang.Object
org.openhab.core.thing.firmware.FirmwareUpdateResultInfo
The 
FirmwareUpdateResultInfo contains information about the result of a firmware update.- Author:
- Thomas Höfer - Initial contribution, Dimitar Ivanov - Consolidated all the needed information for firmware status events
- 
Method SummaryModifier and TypeMethodDescriptionstatic FirmwareUpdateResultInfocreateFirmwareUpdateResultInfo(ThingUID thingUID, FirmwareUpdateResult result, String errorMessage) Creates a newFirmwareUpdateResultInfo.boolean@Nullable StringReturns the error message in case of result isFirmwareUpdateResult.ERROR.Returns the result of the firmware update.Returns the thing UID.inthashCode()toString()
- 
Method Details- 
createFirmwareUpdateResultInfopublic static FirmwareUpdateResultInfo createFirmwareUpdateResultInfo(ThingUID thingUID, FirmwareUpdateResult result, String errorMessage) Creates a newFirmwareUpdateResultInfo.- Parameters:
- thingUID- thingUID of the thing being updated
- result- the result of the firmware update (must not be null)
- errorMessage- the error message in case of result is- FirmwareUpdateResult.ERROR(must not be null or empty for erroneous firmware updates; ignored for successful firmware updates)
- Returns:
- FirmwareUpdateResultInfo (not null)
- Throws:
- IllegalArgumentException- if error message is null or empty for erroneous firmware updates
 
- 
getResultReturns the result of the firmware update.- Returns:
- the result of the firmware update
 
- 
getThingUIDReturns the thing UID.- Returns:
- the thing UID
 
- 
getErrorMessageReturns the error message in case of result isFirmwareUpdateResult.ERROR.- Returns:
- the error message in case of erroneous firmware updates (is null for successful firmware updates)
 
- 
hashCodepublic int hashCode()
- 
equals
- 
toString
 
-