Is it good to use lamdas for each method in prese...
# android-architecture
a
Is it good to use lamdas for each method in presenter class instead of callbacks eg
Copy code
class SamplePresenter(val callBack:SamplePresenterCallBack){
	
	fun doSomething(){

		callBack.onCompleted()

	}
}

instead of 


class SamplePresenter(){
	
	fun doSomething(callBack:()->Unit){

		callBack.onInvoke()

	}


	fun calculateRandom(onCompleted:()->Unit,onSuccess:(UserModel)->Unit,onFail:(ErrorModel)->Unit){

		if(condition){
				onSuccess.invoke(UserModel())
		}else{
			onError.invoke(ErrorModel())
		}
		onCompleted.invoke()

	}