ReceiptRepository

Functions

Link copied to clipboard
abstract suspend fun getCategoryById(categoryId: Long): Category?
Link copied to clipboard
abstract suspend fun getCategoryCount(personId: Long, categoryId: Long): Int
Link copied to clipboard
abstract suspend fun getMostEmbarrassingReceipts(personId: Long, limit: Int): List<Receipt>
Link copied to clipboard
abstract suspend fun getReceiptById(id: Long): Receipt?
Link copied to clipboard
abstract fun getReceiptsForPerson(personId: Long): Flow<List<Receipt>>
Link copied to clipboard
abstract suspend fun getRecentsInCategory(personId: Long, categoryId: Long, limit: Int): List<Receipt>
Link copied to clipboard
abstract suspend fun getTopCategory(personId: Long): Category?
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: Receipt): Long
Link copied to clipboard
abstract suspend fun markHidden(id: Long)