mirror of
https://github.com/InsanusMokrassar/PsychomatrixBase.git
synced 2024-11-15 04:43:58 +00:00
fill DI by modifyPsychomatrixUseCase
This commit is contained in:
parent
4b534b6b16
commit
5b0567beaf
@ -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
|
||||||
}
|
}
|
@ -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()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user