toggle menu
Dermato.AI
androidJvm
switch theme
search in API
Dermato.AI
/
com.dermatoai.repository
/
LikesRepository
Likes
Repository
class
LikesRepository
@
Inject
constructor
(
likesDao
:
LikesDao
)
Members
Constructors
Likes
Repository
Link copied to clipboard
@
Inject
constructor
(
likesDao
:
LikesDao
)
Functions
add
Like
Link copied to clipboard
suspend
fun
addLike
(
diskusi
:
Diskusi
,
userId
:
String
)
get
Liked
Posts
Link copied to clipboard
suspend
fun
getLikedPosts
(
userId
:
String
)
:
List
<
LikesEntity
>
is
Post
Liked
Link copied to clipboard
suspend
fun
isPostLiked
(
diskusiId
:
Int
,
userId
:
String
)
:
LikesEntity
?
remove
Like
Link copied to clipboard
suspend
fun
removeLike
(
likesEntity
:
LikesEntity
)