/*
 * F7cloud Talk - Android Client
 *
 * SPDX-FileCopyrightText: 2023 Marcel Hibbe <dev@mhibbe.de>
 * SPDX-License-Identifier: GPL-3.0-or-later
 */
package ru.f7cloud.talk.openconversations.data

import ru.f7cloud.talk.data.user.model.User
import ru.f7cloud.talk.models.json.conversations.Conversation
import kotlinx.coroutines.flow.Flow

interface OpenConversationsRepository {

    suspend fun fetchConversations(user: User, url: String, searchTerm: String): Result<List<Conversation>>

    fun fetchOpenConversationsFlow(user: User, searchTerm: String): Flow<List<Conversation>>
}
