app
Toggle table of contents
androidJvm
Platform filter
androidJvm
Switch theme
Search in API
app
app
/
com.fam007e.receipts.data.repository
/
ReceiptRepositoryImpl
Receipt
Repository
Impl
class
ReceiptRepositoryImpl
@
Inject
constructor
(
receiptDao
:
ReceiptDao
,
categoryDao
:
CategoryDao
)
:
ReceiptRepository
Members
Constructors
Receipt
Repository
Impl
Link copied to clipboard
@
Inject
constructor
(
receiptDao
:
ReceiptDao
,
categoryDao
:
CategoryDao
)
Functions
get
Category
By
Id
Link copied to clipboard
open
suspend override
fun
getCategoryById
(
categoryId
:
Long
)
:
Category
?
get
Category
Count
Link copied to clipboard
open
suspend override
fun
getCategoryCount
(
personId
:
Long
,
categoryId
:
Long
)
:
Int
get
Most
Embarrassing
Receipts
Link copied to clipboard
open
suspend override
fun
getMostEmbarrassingReceipts
(
personId
:
Long
,
limit
:
Int
)
:
List
<
Receipt
>
get
Receipt
By
Id
Link copied to clipboard
open
suspend override
fun
getReceiptById
(
id
:
Long
)
:
Receipt
?
get
Receipts
For
Person
Link copied to clipboard
open
override
fun
getReceiptsForPerson
(
personId
:
Long
)
:
Flow
<
List
<
Receipt
>
>
get
Recents
In
Category
Link copied to clipboard
open
suspend override
fun
getRecentsInCategory
(
personId
:
Long
,
categoryId
:
Long
,
limit
:
Int
)
:
List
<
Receipt
>
get
Top
Category
Link copied to clipboard
open
suspend override
fun
getTopCategory
(
personId
:
Long
)
:
Category
?
get
Top
Category
Id
Link copied to clipboard
open
suspend override
fun
getTopCategoryId
(
personId
:
Long
)
:
Long
?
get
Total
Count
Link copied to clipboard
open
suspend override
fun
getTotalCount
(
personId
:
Long
)
:
Int
insert
Receipt
Link copied to clipboard
open
suspend override
fun
insertReceipt
(
receipt
:
Receipt
)
:
Long
mark
Hidden
Link copied to clipboard
open
suspend override
fun
markHidden
(
id
:
Long
)