mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-18 20:08:53 +01:00
Create interactor for marking conversation read
This commit is contained in:
@@ -2,12 +2,8 @@ package com.moez.QKSMS.common.di
|
||||
|
||||
import android.app.Application
|
||||
import android.content.Context
|
||||
import com.moez.QKSMS.data.datasource.MessageTransaction
|
||||
import com.moez.QKSMS.data.datasource.native.NativeMessageTransaction
|
||||
import com.moez.QKSMS.data.datasource.realm.RealmMessageTransaction
|
||||
import dagger.Module
|
||||
import dagger.Provides
|
||||
import javax.inject.Named
|
||||
import javax.inject.Singleton
|
||||
|
||||
@Module
|
||||
@@ -19,18 +15,4 @@ class AppModule(private var application: Application) {
|
||||
return application
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Singleton
|
||||
@Named("Realm")
|
||||
fun provideRealmMessageTransaction() : MessageTransaction {
|
||||
return RealmMessageTransaction()
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Singleton
|
||||
@Named("Native")
|
||||
fun provideNativeMessageTransaction(context: Context) : MessageTransaction {
|
||||
return NativeMessageTransaction(context)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user