Ready

data class Ready(val release: FirmwareRelease?, val deviceHardware: DeviceHardware, val address: String, val showBootloaderWarning: Boolean, val updateMethod: FirmwareUpdateMethod, val currentFirmwareVersion: String? = null, val isRecovery: Boolean = false, val maintenance: UsbMaintenanceGate = UsbMaintenanceGate()) : FirmwareUpdateState(source)

Device and release info resolved; the user may initiate an update.

Constructors

Link copied to clipboard
constructor(release: FirmwareRelease?, deviceHardware: DeviceHardware, address: String, showBootloaderWarning: Boolean, updateMethod: FirmwareUpdateMethod, currentFirmwareVersion: String? = null, isRecovery: Boolean = false, maintenance: UsbMaintenanceGate = UsbMaintenanceGate())

Properties

Link copied to clipboard

Bare device address with the InterfaceId transport prefix stripped (e.g. MAC or IP).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

True when reached while disconnected to re-flash a device stranded in bootloader mode after an interrupted update (see FirmwareUpdateViewModel.checkForUpdates). Drives recovery-specific copy and routing.

Link copied to clipboard

Which USB maintenance affordances to show, precomputed by the ViewModel so the screen stays dumb and the decision stays unit-testable — the same shape as showBootloaderWarning.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard