package eVVM.apk.ui.My.examine; import eVVM.apk.mvp.MvpPresenter; import eVVM.apk.ui.bean.VerificationCodeBean; /** * Created by Android Studio. * User: zbb * Date: 2019/6/7 * Describe: ExaminePresenter */ public class ExaminePresenter extends MvpPresenter implements ExamineContract.Presenter, ExamineOnListener { private ExamineModel examineModel; @Override public void start() { examineModel = new ExamineModel(); } @Override public void agreeProtocol(String userId) { examineModel.setListener(this); examineModel.agreeProtocol(userId); } @Override public void failureReasons(String userId) { examineModel.setListener(this); examineModel.failureReasons(userId); } @Override public void onSucceed(VerificationCodeBean data) { getView().agreeSuccess(data); } @Override public void onFail(String msg) { getView().agreeError(msg); } @Override public void onfailmsgSucceed(VerificationCodeBean data) { getView().failureReasonsSuccess(data); } @Override public void onfailmsgFail(String msg) { getView().failureReasonsError(msg); } }