package lib.morkim.mfw.usecase;

import lib.morkim.mfw.app.AppContext;

public abstract class AsyncUseCase extends BaseUseCase implements UseCase {

	private UseCaseTask asycnTask;

	public AsyncUseCase(AppContext appContext) {
		super(appContext);
		
		this.asycnTask = new UseCaseTask(this);
	}

	@Override
	public void execute() {
		execute(null);
	}

	@Override
	public void execute(UseCaseRequest request) {
		
		setRequest(request);
		
		asycnTask.execute();
	}
	
	@Override
	public void executeSync() {

		this.onPrepare();
		this.onExecute();
		this.onReportProgress();
		this.onSaveModel();
	}
	
	@Override
	public void executeSync(UseCaseRequest request) {
		setRequest(request);
		
		executeSync();
	}
	
	@Override
	protected void reportProgress() {
		asycnTask.reportProgress();
	}

	public void setListener(UseCaseStateListener listener) {
	}
}
@@ -790,68 +790,6 @@
 ;%0A%09%7D
-%0A%0A%09public void setListener(UseCaseStateListener listener) %7B%0A%09%7D
 %0A%7D

Remove setUseCaseListsner override in AsyncUseCase