Skip to content

Instantly share code, notes, and snippets.

@Guilherme-HRamos
Last active July 27, 2019 22:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Guilherme-HRamos/c71644414fe9033045447a91fe8fb36c to your computer and use it in GitHub Desktop.
Save Guilherme-HRamos/c71644414fe9033045447a91fe8fb36c to your computer and use it in GitHub Desktop.
Medium - Android/Java Interfaces like a Boss! - Contracts interfaces
public interface Presenter {
void onUpdateAccount(String newName, String newEmail);
void onRemoveAccount();
}
public interface ViewContract {
void onShowLoading();
void onHideLoading();
void onShowError(String error);
void onAccountUpdate();
void onAccountRemoved();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment