Skip to content

Instantly share code, notes, and snippets.

Last active November 19, 2016 06:23
What would you like to do?
ChallengesContract is an agreement or contract between the View and Presenter
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