CleanNodeDatabaseUseCase

open class CleanNodeDatabaseUseCase(nodeRepository: ERROR CLASS: Symbol not found for NodeRepository, radioController: ERROR CLASS: Symbol not found for RadioController)(source)

Use case for cleaning up nodes from the database.

Constructors

Link copied to clipboard
constructor(nodeRepository: ERROR CLASS: Symbol not found for NodeRepository, radioController: ERROR CLASS: Symbol not found for RadioController)

Functions

Link copied to clipboard
suspend fun cleanNodes(nodeNums: List<Int>)

Performs the cleanup of specified nodes.

Link copied to clipboard
suspend fun getNodesToClean(olderThanDays: Float, onlyUnknownNodes: Boolean, currentTimeSeconds: Long): List<ERROR CLASS: Symbol not found for Node>

Identifies nodes that match the cleanup criteria.