AndroidAPS/app/src/main/java/info/nightscout/androidaps/dependencyInjection/DataClassesModule.kt

24 lines
1.1 KiB
Kotlin
Raw Normal View History

2020-04-30 00:37:58 +02:00
package info.nightscout.androidaps.dependencyInjection
import dagger.Module
import dagger.android.ContributesAndroidInjector
import info.nightscout.androidaps.db.DatabaseHelper
2020-05-12 14:33:47 +02:00
import info.nightscout.androidaps.plugins.general.food.FoodService
import info.nightscout.androidaps.plugins.iob.iobCobCalculator.GlucoseStatus
2020-04-30 18:39:52 +02:00
import info.nightscout.androidaps.plugins.treatments.TreatmentService
2020-04-30 00:37:58 +02:00
import info.nightscout.androidaps.utils.wizard.BolusWizard
import info.nightscout.androidaps.utils.wizard.QuickWizardEntry
@Module
@Suppress("unused")
abstract class DataClassesModule {
@ContributesAndroidInjector abstract fun glucoseStatusInjector(): GlucoseStatus
2020-05-12 14:33:47 +02:00
@ContributesAndroidInjector abstract fun DatabaseHelperInjector(): DatabaseHelper
2020-04-30 18:39:52 +02:00
@ContributesAndroidInjector abstract fun treatmentServiceInjector(): TreatmentService
2020-05-12 14:33:47 +02:00
@ContributesAndroidInjector abstract fun foodServiceInjector(): FoodService
2020-04-30 18:39:52 +02:00
2020-04-30 00:37:58 +02:00
@ContributesAndroidInjector abstract fun bolusWizardInjector(): BolusWizard
@ContributesAndroidInjector abstract fun quickWizardEntryInjector(): QuickWizardEntry
}