toggle menu
Dermato.AI
androidJvm
switch theme
search in API
Dermato.AI
/
com.dermatoai.model
/
LikesViewModel
Likes
View
Model
class
LikesViewModel
@
Inject
constructor
(
repository
:
LikesRepository
)
:
ViewModel
Members
Constructors
Likes
View
Model
Link copied to clipboard
@
Inject
constructor
(
repository
:
LikesRepository
)
Properties
error
Link copied to clipboard
val
error
:
StateFlow
<
String
?
>
likes
Link copied to clipboard
val
likes
:
StateFlow
<
List
<
LikesEntity
>
?
>
loading
Link copied to clipboard
val
loading
:
StateFlow
<
Boolean
?
>
Functions
add
Likes
Link copied to clipboard
fun
addLikes
(
diskusi
:
Diskusi
,
userId
:
String
)
delete
Likes
Link copied to clipboard
fun
deleteLikes
(
likesEntity
:
LikesEntity
,
userId
:
String
)
fetch
Likes
By
User
Id
Link copied to clipboard
fun
fetchLikesByUserId
(
userId
:
String
)