CleanNodeDatabaseUseCase

open class CleanNodeDatabaseUseCase(nodeRepository: NodeRepository, radioController: RadioController)(source)

Use case for cleaning up nodes from the database.

Constructors

Link copied to clipboard
constructor(nodeRepository: NodeRepository, radioController: RadioController)

Functions

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

Performs the cleanup of specified nodes.

Link copied to clipboard
open suspend fun getNodesToClean(olderThanDays: Float, onlyUnknownNodes: Boolean, currentTimeSeconds: Long): List<Node>

Identifies nodes that match the cleanup criteria.