From 814a43e490b6f66c2a0b550815a228e953f088cd Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 6 Sep 2018 18:41:13 +0800 Subject: [PATCH] actualize PresentationLayerDI --- .../PsychomatrixBase/di/PresentationLayerDI.kt | 3 +++ .../di/realisations/PresentationLayerDIImpl.kt | 5 +++++ .../presentation/presenters/PsychomatrixChangerPresenter.kt | 4 ---- 3 files changed, 8 insertions(+), 4 deletions(-) delete mode 100644 src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/presentation/presenters/PsychomatrixChangerPresenter.kt diff --git a/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/PresentationLayerDI.kt b/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/PresentationLayerDI.kt index ac263af..ae472d7 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/PresentationLayerDI.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/PresentationLayerDI.kt @@ -2,10 +2,13 @@ package com.github.insanusmokrassar.PsychomatrixBase.di import com.github.insanusmokrassar.PsychomatrixBase.data.repository.HistoryDatesRepository import com.github.insanusmokrassar.PsychomatrixBase.presentation.presenters.DatePickerPresenter +import com.github.insanusmokrassar.PsychomatrixBase.presentation.presenters.ModifyPsychomatrixPresenter interface PresentationLayerDI : UseCasesDI { val datePickerPresenter: DatePickerPresenter val historyDatesRepository: HistoryDatesRepository + + val modifyPsychomatrixPresenter: ModifyPsychomatrixPresenter } \ No newline at end of file diff --git a/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/realisations/PresentationLayerDIImpl.kt b/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/realisations/PresentationLayerDIImpl.kt index cf98e02..8c37b5e 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/realisations/PresentationLayerDIImpl.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/realisations/PresentationLayerDIImpl.kt @@ -4,6 +4,8 @@ import com.github.insanusmokrassar.PsychomatrixBase.di.PresentationLayerDI import com.github.insanusmokrassar.PsychomatrixBase.di.UseCasesDI import com.github.insanusmokrassar.PsychomatrixBase.presentation.presenters.DatePickerPresenter import com.github.insanusmokrassar.PsychomatrixBase.presentation.presenters.DefaultRealisations.DatePickerPresenterImpl +import com.github.insanusmokrassar.PsychomatrixBase.presentation.presenters.DefaultRealisations.ModifyPsychomatrixPresenterImpl +import com.github.insanusmokrassar.PsychomatrixBase.presentation.presenters.ModifyPsychomatrixPresenter abstract class PresentationLayerDIImpl( useCasesDI: UseCasesDI @@ -15,4 +17,7 @@ abstract class PresentationLayerDIImpl( ) } + override val modifyPsychomatrixPresenter: ModifyPsychomatrixPresenter = ModifyPsychomatrixPresenterImpl( + modifyPsychomatrixUseCase + ) } \ No newline at end of file diff --git a/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/presentation/presenters/PsychomatrixChangerPresenter.kt b/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/presentation/presenters/PsychomatrixChangerPresenter.kt deleted file mode 100644 index ec07809..0000000 --- a/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/presentation/presenters/PsychomatrixChangerPresenter.kt +++ /dev/null @@ -1,4 +0,0 @@ -package com.github.insanusmokrassar.PsychomatrixBase.presentation.presenters - -interface PsychomatrixChangerPresenter { -} \ No newline at end of file