ReceiptDao

interface ReceiptDao

Functions

Link copied to clipboard
abstract suspend fun getCategoryCount(personId: Long, categoryId: Long): Int
Link copied to clipboard
abstract suspend fun getCurrentStreak(personId: Long): Int
Link copied to clipboard
abstract suspend fun getLatestInCategory(personId: Long, categoryId: Long): ReceiptEntity?
Link copied to clipboard
abstract suspend fun getMostEmbarrassingReceipts(personId: Long, limit: Int): List<ReceiptEntity>
Link copied to clipboard
abstract suspend fun getPositiveCount(personId: Long): Int
Link copied to clipboard
abstract suspend fun getReceiptById(id: Long): ReceiptEntity?
Link copied to clipboard
abstract fun getReceiptsForPerson(personId: Long): Flow<List<ReceiptEntity>>
Link copied to clipboard
abstract suspend fun getRecentsInCategory(personId: Long, categoryId: Long, limit: Int): List<ReceiptEntity>
Link copied to clipboard
abstract suspend fun getTopCategoryId(personId: Long): Long?
Link copied to clipboard
abstract suspend fun getTotalCount(personId: Long): Int
Link copied to clipboard
abstract suspend fun insertReceipt(receipt: ReceiptEntity): Long
Link copied to clipboard
abstract suspend fun markHidden(id: Long)