use of de.djuelg.neuronizer.domain.interactors.todolist.impl.EditItemInteractorImpl in project Neuronizer by djuelg.
the class DisplayTodoListPresenterImpl method syncSubItems.
private void syncSubItems(List<ISectionable> subItems) {
List<ISectionable> reversedItems = Lists.reverse(Optional.fromNullable(subItems).or(new ArrayList<ISectionable>(0)));
for (ISectionable vm : reversedItems) {
TodoListItem item = ((TodoListItemViewModel) vm).getItem();
EditItemInteractor interactor = new EditItemInteractorImpl(mExecutor, mMainThread, this, repository, item.getUuid(), item.getTitle(), reversedItems.indexOf(vm), item.isImportant(), item.getDetails(), item.isDone(), ((TodoListItemViewModel) vm).getHeader().getHeader().getUuid());
interactor.execute();
}
}
use of de.djuelg.neuronizer.domain.interactors.todolist.impl.EditItemInteractorImpl in project Neuronizer by djuelg.
the class ItemPresenterImpl method editItem.
@Override
public void editItem(String uuid, String title, int position, boolean important, String details, boolean done, String parentTodoListUuid, String parentHeaderUuid) {
// initialize the interactor
EditItemInteractor interactor = new EditItemInteractorImpl(mExecutor, mMainThread, this, repository, uuid, title, position, important, details, done, parentHeaderUuid);
// run the interactor
interactor.execute();
}
Aggregations