toggle menu
Dermato.AI
androidJvm
switch theme
search in API
Dermato.AI
/
com.dermatoai.model
/
ChatAiViewModel
Chat
Ai
View
Model
class
ChatAiViewModel
@
Inject
constructor
(
repository
:
ChatbotRepository
)
:
ViewModel
Members
Constructors
Chat
Ai
View
Model
Link copied to clipboard
@
Inject
constructor
(
repository
:
ChatbotRepository
)
Properties
chat
Messages
Link copied to clipboard
val
chatMessages
:
LiveData
<
MutableList
<
ChatData
>
>
Functions
add
Message
Link copied to clipboard
fun
addMessage
(
message
:
ChatData
)
clear
Messages
Link copied to clipboard
fun
clearMessages
(
)
request
Chatbot
Link copied to clipboard
suspend
fun
requestChatbot
(
senderMessage
:
String
)