ReceiptRepositoryImpl

class ReceiptRepositoryImpl @Inject constructor(receiptDao: ReceiptDao, categoryDao: CategoryDao) : ReceiptRepository

Constructors

Link copied to clipboard
@Inject
constructor(receiptDao: ReceiptDao, categoryDao: CategoryDao)

Functions

Link copied to clipboard
open suspend override fun getCategoryById(categoryId: Long): Category?
Link copied to clipboard
open suspend override fun getCategoryCount(personId: Long, categoryId: Long): Int
Link copied to clipboard
open suspend override fun getMostEmbarrassingReceipts(personId: Long, limit: Int): List<Receipt>
Link copied to clipboard
open suspend override fun getReceiptById(id: Long): Receipt?
Link copied to clipboard
open override fun getReceiptsForPerson(personId: Long): Flow<List<Receipt>>
Link copied to clipboard
open suspend override fun getRecentsInCategory(personId: Long, categoryId: Long, limit: Int): List<Receipt>
Link copied to clipboard
open suspend override fun getTopCategory(personId: Long): Category?
Link copied to clipboard
open suspend override fun getTopCategoryId(personId: Long): Long?
Link copied to clipboard
open suspend override fun getTotalCount(personId: Long): Int
Link copied to clipboard
open suspend override fun insertReceipt(receipt: Receipt): Long
Link copied to clipboard
open suspend override fun markHidden(id: Long)