-
-
Save vishnusosale/8bcdf762c3fada6a51ae35d2262fe66f to your computer and use it in GitHub Desktop.
ChallengesContract is an agreement or contract between the View and Presenter
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
import android.database.Cursor; | |
/** | |
* The contract between the View and the Presenter | |
*/ | |
public class ChallengesContract { | |
public interface View { | |
void showProgressBar(); | |
void dismissProgressBar(); | |
void showLayoutOnError(String message); | |
void showLayoutOnSuccess(); | |
void showLayoutOnProgress(); | |
void showChallenges(Cursor cursor); | |
void showLayoutOnEmpty(); | |
} | |
public interface Presenter { | |
void start(); | |
void clearOldChallenges(); | |
void getChallenges(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment