fill DI by modifyPsychomatrixUseCase

This commit is contained in:
InsanusMokrassar 2018-09-05 20:35:07 +08:00
parent 4b534b6b16
commit 5b0567beaf
2 changed files with 8 additions and 1 deletions

View File

@ -1,7 +1,9 @@
package com.github.insanusmokrassar.PsychomatrixBase.di package com.github.insanusmokrassar.PsychomatrixBase.di
import com.github.insanusmokrassar.PsychomatrixBase.domain.UseCases.CalculatePsychomatrixByDateUseCase import com.github.insanusmokrassar.PsychomatrixBase.domain.UseCases.CalculatePsychomatrixByDateUseCase
import com.github.insanusmokrassar.PsychomatrixBase.domain.UseCases.ModifyPsychomatrixUseCase
interface UseCasesDI : EntitiesDI { interface UseCasesDI : EntitiesDI {
val calculatePsychomatrixByDateUseCase: CalculatePsychomatrixByDateUseCase val calculatePsychomatrixByDateUseCase: CalculatePsychomatrixByDateUseCase
val modifyPsychomatrixUseCase: ModifyPsychomatrixUseCase
} }

View File

@ -3,13 +3,18 @@ package com.github.insanusmokrassar.PsychomatrixBase.di.realisations
import com.github.insanusmokrassar.PsychomatrixBase.di.EntitiesDI import com.github.insanusmokrassar.PsychomatrixBase.di.EntitiesDI
import com.github.insanusmokrassar.PsychomatrixBase.di.UseCasesDI import com.github.insanusmokrassar.PsychomatrixBase.di.UseCasesDI
import com.github.insanusmokrassar.PsychomatrixBase.domain.UseCases.CalculatePsychomatrixByDateUseCase import com.github.insanusmokrassar.PsychomatrixBase.domain.UseCases.CalculatePsychomatrixByDateUseCase
import com.github.insanusmokrassar.PsychomatrixBase.domain.UseCases.ModifyPsychomatrixUseCase
import com.github.insanusmokrassar.PsychomatrixBase.domain.interactors.CalculatePsychomatrixByDateUseCaseInteractor import com.github.insanusmokrassar.PsychomatrixBase.domain.interactors.CalculatePsychomatrixByDateUseCaseInteractor
import com.github.insanusmokrassar.PsychomatrixBase.domain.interactors.ModifyPsychomatrixUseCaseInteractor
open class UseCasesDIImpl( open class UseCasesDIImpl(
entitiesDI: EntitiesDI entitiesDI: EntitiesDI
) : UseCasesDI, EntitiesDI by entitiesDI { ) : UseCasesDI, EntitiesDI by entitiesDI {
override val calculatePsychomatrixByDateUseCase: CalculatePsychomatrixByDateUseCase by lazy { override val calculatePsychomatrixByDateUseCase: CalculatePsychomatrixByDateUseCase by lazy {
CalculatePsychomatrixByDateUseCaseInteractor() CalculatePsychomatrixByDateUseCaseInteractor()
} }
override val modifyPsychomatrixUseCase: ModifyPsychomatrixUseCase by lazy {
ModifyPsychomatrixUseCaseInteractor()
}
} }