// Path: app/src/main/java/com/kuahusg/weather/Presenter/base/IBasePresenter.java
// public interface IBasePresenter {
// 
//     void init();
// 
//     void start();
// 
//     void onDestroy();
// }


import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.kuahusg.weather.Presenter.base.IBasePresenter;
package com.kuahusg.weather.UI.base;



/**
 * Created by kuahusg on 16-9-29.
 */

public abstract class BaseFragment extends Fragment implements IBaseView {

    private IBasePresenter mPresenter;

    protected abstract int setLayoutId();


    public IBasePresenter getPresenter() {
        return this.mPresenter;
    }


    public boolean hasPresenter() {
        return this.mPresenter != null;
    }

    protected abstract IBasePresenter setPresenter();


    @Override
// Path: app/src/main/java/com/kuahusg/weather/Presenter/base/IBasePresenter.java
// public interface IBasePresenter {
// 
//     void init();
// 
//     void start();
// 
//     void onDestroy();
// }


// Path: app/src/main/java/com/kuahusg/weather/UI/base/BaseFragment.java
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.kuahusg.weather.Presenter.base.IBasePresenter;

package com.kuahusg.weather.UI.base;



/**
 * Created by kuahusg on 16-9-29.
 */

public abstract class BaseFragment extends Fragment implements IBaseView {

    private IBasePresenter mPresenter;

    protected abstract int setLayoutId();


    public IBasePresenter getPresenter() {
        return this.mPresenter;
    }


    public boolean hasPresenter() {
        return this.mPresenter != null;
    }

    protected abstract IBasePresenter setPresenter();


    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {