Search in sources :

Example 1 with IPullController

use of org.eyeseetea.malariacare.domain.boundary.IPullController in project pictureapp by EyeSeeTea.

the class ProgressActivity method initializeDependencies.

private void initializeDependencies() {
    AuthenticationManager authenticationManager = new AuthenticationManager(this);
    IPullController pullController = new PullController(this);
    IAsyncExecutor asyncExecutor = new AsyncExecutor();
    IMainExecutor mainExecutor = new UIThreadExecutor();
    mLogoutUseCase = new LogoutUseCase(authenticationManager);
    mPullUseCase = new PullUseCase(pullController, asyncExecutor, mainExecutor);
}
Also used : AuthenticationManager(org.eyeseetea.malariacare.data.authentication.AuthenticationManager) IPullController(org.eyeseetea.malariacare.domain.boundary.IPullController) PullUseCase(org.eyeseetea.malariacare.domain.usecase.pull.PullUseCase) UIThreadExecutor(org.eyeseetea.malariacare.presentation.executors.UIThreadExecutor) IAsyncExecutor(org.eyeseetea.malariacare.domain.boundary.executors.IAsyncExecutor) LogoutUseCase(org.eyeseetea.malariacare.domain.usecase.LogoutUseCase) PullController(org.eyeseetea.malariacare.data.sync.importer.PullController) IPullController(org.eyeseetea.malariacare.domain.boundary.IPullController) IAsyncExecutor(org.eyeseetea.malariacare.domain.boundary.executors.IAsyncExecutor) AsyncExecutor(org.eyeseetea.malariacare.presentation.executors.AsyncExecutor) IMainExecutor(org.eyeseetea.malariacare.domain.boundary.executors.IMainExecutor)

Aggregations

AuthenticationManager (org.eyeseetea.malariacare.data.authentication.AuthenticationManager)1 PullController (org.eyeseetea.malariacare.data.sync.importer.PullController)1 IPullController (org.eyeseetea.malariacare.domain.boundary.IPullController)1 IAsyncExecutor (org.eyeseetea.malariacare.domain.boundary.executors.IAsyncExecutor)1 IMainExecutor (org.eyeseetea.malariacare.domain.boundary.executors.IMainExecutor)1 LogoutUseCase (org.eyeseetea.malariacare.domain.usecase.LogoutUseCase)1 PullUseCase (org.eyeseetea.malariacare.domain.usecase.pull.PullUseCase)1 AsyncExecutor (org.eyeseetea.malariacare.presentation.executors.AsyncExecutor)1 UIThreadExecutor (org.eyeseetea.malariacare.presentation.executors.UIThreadExecutor)1