Last active
July 27, 2019 22:43
-
-
Save Guilherme-HRamos/c71644414fe9033045447a91fe8fb36c to your computer and use it in GitHub Desktop.
Medium - Android/Java Interfaces like a Boss! - Contracts interfaces
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 interface Presenter { | |
void onUpdateAccount(String newName, String newEmail); | |
void onRemoveAccount(); | |
} |
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 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