| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- package eVVM.apk.ui.My.information;
- import eVVM.apk.mvp.MvpPresenter;
- import eVVM.apk.ui.bean.VerificationCodeBean;
- /**
- * Created by Android Studio.
- * User: zbb
- * Date: 2019/6/3
- * Describe: InformationPresenter
- */
- public class InformationPresenter extends MvpPresenter<InformationContract.View> implements InformationContract.Presenter, InformationOnListener {
- private InformationModel informationModel;
- @Override
- public void start() {
- informationModel = new InformationModel();
- }
- @Override
- public void information(String telephone, String userName, String code, String password, String email) {
- informationModel.setListener(this);
- informationModel.information(telephone, userName, code, password, email);
- }
- @Override
- public void getCode(String telephone, int type) {
- informationModel.setListener(this);
- informationModel.getCode(telephone, type);
- }
- @Override
- public void onSucceed(VerificationCodeBean data) {
- getView().informationSuccess(data);
- }
- @Override
- public void onFail(String msg) {
- getView().informationError(msg);
- }
- @Override
- public void onCodeSucceed(VerificationCodeBean codeData) {
- getView().getCodeSuccess(codeData);
- }
- @Override
- public void onCodeFail(String msg) {
- getView().getCodeError(msg);
- }
- }
|