package com.navinfo.outdoor.base;

public abstract class BaseMVPFragment<P extends BasePresenter,V extends BaseView> extends BaseFragment{
    protected  P presenter;

    @Override
    protected void initMvp() {
        super.initMvp();
        presenter=  initMVPPresenter();
        if (presenter!=null){
            presenter.setView(initMVPView());
        }
    }

    protected abstract V initMVPView();

    protected abstract P initMVPPresenter();

}
