Created
August 24, 2017 17:12
-
-
Save anandgaurav10/fa3e607ce4b7ad21bcfe14e6344c6109 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BasePresenter<V extends MvpView> implements MvpPresenter<V> { | |
private V mMvpView; | |
DataManager mDataManager; | |
public BasePresenter(DataManager dataManager){ | |
mDataManager = dataManager; | |
} | |
@Override | |
public void onAttach(V mvpView) { | |
mMvpView = mvpView; | |
} | |
public V getMvpView() { | |
return mMvpView; | |
} | |
public DataManager getDataManager() { | |
return mDataManager; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment