/*
 * F7cloud Talk - Android Client
 *
 * SPDX-FileCopyrightText: 2024 Marcel Hibbe <dev@mhibbe.de>
 * SPDX-License-Identifier: GPL-3.0-or-later
 */

package ru.f7cloud.talk.dagger.modules

import ru.f7cloud.talk.data.database.dao.ChatBlocksDao
import ru.f7cloud.talk.data.database.dao.ChatMessagesDao
import ru.f7cloud.talk.data.database.dao.ConversationsDao
import ru.f7cloud.talk.data.source.local.TalkDatabase
import dagger.Module
import dagger.Provides

@Module
internal object DaosModule {
    @Provides
    fun providesConversationsDao(database: TalkDatabase): ConversationsDao = database.conversationsDao()

    @Provides
    fun providesChatDao(database: TalkDatabase): ChatMessagesDao = database.chatMessagesDao()

    @Provides
    fun providesChatBlocksDao(database: TalkDatabase): ChatBlocksDao = database.chatBlocksDao()
}
