public class UpgradeProgress extends Object
This object is usually passed through a callback that has been previously registered with a method that performs the upgrade.
Constructor and Description |
---|
UpgradeProgress(UUID uuid,
double progress,
boolean isComplete,
String upgradeFile,
String firmwareVersion,
long timestamp) |
UpgradeProgress(UUID uuid,
double progress,
boolean isComplete,
String id,
UpgradeStatus status,
String upgradeFile,
String firmwareVersion,
long timestamp) |
Modifier and Type | Method and Description |
---|---|
String |
getEventId()
Gets the event id of the upgrade event.
|
String |
getFirmwareVersion()
Gets the firmware version for the upgrade that is happening.
|
String |
getId()
Gets the id of the device that is currently upgrading.
|
double |
getProgress()
Gets the progress of an upgrade that is currently in progress.
|
Optional<UpgradeStatus> |
getStatus()
Returns the status of the upgrade.
|
long |
getTimeStamp()
Gets the timestamp in that moment of the upgrade.
|
String |
getUpgradeFile()
Gets the file name for the upgrade that is happening.
|
boolean |
isComplete()
Gets the status of an upgrade that is currently in progress.
|
public UpgradeProgress(UUID uuid, double progress, boolean isComplete, String upgradeFile, String firmwareVersion, long timestamp)
public UpgradeProgress(UUID uuid, double progress, boolean isComplete, String id, UpgradeStatus status, String upgradeFile, String firmwareVersion, long timestamp)
public String getEventId()
public double getProgress()
public boolean isComplete()
public String getId()
public Optional<UpgradeStatus> getStatus()
public String getUpgradeFile()
public String getFirmwareVersion()
public long getTimeStamp()
Copyright © 2021. All rights reserved.