Skip to content

//app/dev.atick.compose.repository.chat/ChatRepository

ChatRepository

interface ChatRepository

Repository for fetching chat data.

Inheritors

ChatRepositoryImpl

Types

Name Summary
Companion [androidJvm]
object Companion

Functions

Name Summary
getAllMessages [androidJvm]
abstract fun getAllMessages(): Flow<List<UiMessage>>
Gets all the messages.
initializeChat [androidJvm]
abstract suspend fun initializeChat(monthInfo: MonthInfo, historyDepth: Int): Result<Unit>
Initializes the chat.
sendMessage [androidJvm]
abstract suspend fun sendMessage(message: String): Result<Unit>
Sends a message.