CleanNodeDatabaseViewModel

class CleanNodeDatabaseViewModel(cleanNodeDatabaseUseCase: ERROR CLASS: Symbol not found for CleanNodeDatabaseUseCase, alertManager: ERROR CLASS: Symbol not found for AlertManager) : <ERROR CLASS> ERROR CLASS: Symbol not found for ViewModel(source)

ViewModel for CleanNodeDatabaseScreen. Manages the state and logic for cleaning the node database based on specified criteria. The "older than X days" filter is always active.

Constructors

Link copied to clipboard
constructor(cleanNodeDatabaseUseCase: ERROR CLASS: Symbol not found for CleanNodeDatabaseUseCase, alertManager: ERROR CLASS: Symbol not found for AlertManager)

Properties

Link copied to clipboard
val nodesToDelete: ERROR CLASS: Unresolved name: asStateFlow
Link copied to clipboard
val olderThanDays: ERROR CLASS: Unresolved name: asStateFlow
Link copied to clipboard
val onlyUnknownNodes: ERROR CLASS: Unresolved name: asStateFlow

Functions

Link copied to clipboard

Deletes the nodes currently queued in _nodesToDelete from the database and instructs the mesh service to remove them.

Link copied to clipboard

Updates the list of nodes to be deleted based on the current filter criteria.

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