package de.krisenvorrat.app.domain.repository

import de.krisenvorrat.app.data.db.entity.MessageEntity
import de.krisenvorrat.shared.model.UserListItemDto
import kotlinx.coroutines.flow.Flow

internal interface MessageRepository {
    fun getConversation(myId: String, otherId: String): Flow<List<MessageEntity>>
    suspend fun sendMessage(recipientId: String, body: String)
    suspend fun fetchUsers(): Result<List<UserListItemDto>>
    suspend fun getMyUserId(): String?
    suspend fun drainPendingMessages()
}
