StatsViewModel

class StatsViewModel @Inject constructor(personRepository: PersonRepository, receiptRepository: ReceiptRepository, receiptDao: ReceiptDao) : ViewModel

Constructors

Link copied to clipboard
@Inject
constructor(personRepository: PersonRepository, receiptRepository: ReceiptRepository, receiptDao: ReceiptDao)

Properties

Link copied to clipboard
val allReceipts: StateFlow<List<Receipt>>
Link copied to clipboard
val globalTotal: StateFlow<Int>
Link copied to clipboard
val stats: StateFlow<List<PersonStat>>

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard