Search in sources :

Example 1 with EditTodoListInteractor

use of de.djuelg.neuronizer.domain.interactors.preview.EditTodoListInteractor in project Neuronizer by djuelg.

the class DisplayPreviewPresenterImpl method syncPreviews.

@Override
public void syncPreviews(List<PreviewViewModel> previews) {
    List<PreviewViewModel> reversedPreviews = Lists.reverse(Optional.fromNullable(previews).or(new ArrayList<PreviewViewModel>(0)));
    for (PreviewViewModel vm : reversedPreviews) {
        EditTodoListInteractor interactor = new EditTodoListInteractorImpl(mExecutor, mMainThread, this, repository, vm.getUuid(), vm.getTitle(), reversedPreviews.indexOf(vm));
        interactor.execute();
    }
}
Also used : PreviewViewModel(de.djuelg.neuronizer.presentation.ui.flexibleadapter.PreviewViewModel) ArrayList(java.util.ArrayList) EditTodoListInteractor(de.djuelg.neuronizer.domain.interactors.preview.EditTodoListInteractor) EditTodoListInteractorImpl(de.djuelg.neuronizer.domain.interactors.preview.impl.EditTodoListInteractorImpl)

Example 2 with EditTodoListInteractor

use of de.djuelg.neuronizer.domain.interactors.preview.EditTodoListInteractor in project Neuronizer by djuelg.

the class TodoListPresenterImpl method editTodoList.

@Override
public void editTodoList(String uuid, String title, int position) {
    EditTodoListInteractor interactor = new EditTodoListInteractorImpl(mExecutor, mMainThread, this, repository, uuid, title, position);
    interactor.execute();
}
Also used : EditTodoListInteractor(de.djuelg.neuronizer.domain.interactors.preview.EditTodoListInteractor) EditTodoListInteractorImpl(de.djuelg.neuronizer.domain.interactors.preview.impl.EditTodoListInteractorImpl)

Aggregations

EditTodoListInteractor (de.djuelg.neuronizer.domain.interactors.preview.EditTodoListInteractor)2 EditTodoListInteractorImpl (de.djuelg.neuronizer.domain.interactors.preview.impl.EditTodoListInteractorImpl)2 PreviewViewModel (de.djuelg.neuronizer.presentation.ui.flexibleadapter.PreviewViewModel)1 ArrayList (java.util.ArrayList)1