package info.nightscout.androidaps.dependencyInjection import dagger.Binds import dagger.Module import dagger.Provides import dagger.multibindings.IntKey import dagger.multibindings.IntoMap import info.nightscout.androidaps.skins.SkinButtonsOn import info.nightscout.androidaps.skins.SkinClassic import info.nightscout.androidaps.skins.SkinInterface import info.nightscout.androidaps.skins.SkinLargeDisplay import javax.inject.Qualifier @Module open class SkinsModule { @Provides @Skin @IntoMap @IntKey(0) fun bindsSkinClassic(skinClassic: SkinClassic): SkinInterface = skinClassic @Provides @Skin @IntoMap @IntKey(10) fun bindsSkinButtonsOn(skinButtonsOn: SkinButtonsOn): SkinInterface = skinButtonsOn @Provides @Skin @IntoMap @IntKey(20) fun bindsSkinLargeDisplay(skinLargeDisplay: SkinLargeDisplay): SkinInterface = skinLargeDisplay @Qualifier annotation class Skin }