Skip to content

Commit

Permalink
Add default implementation of new presenter methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ekigamba committed Sep 21, 2020
1 parent 585bcbd commit 53ba300
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_NAME=2.1.2-SNAPSHOT
VERSION_NAME=2.1.2.1-SNAPSHOT
VERSION_CODE=1
GROUP=org.smartregister
POM_SETTING_DESCRIPTION=OpenSRP Client Core Application
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,25 @@ public interface ConfigurableRegisterActivityContract {

interface View {
Presenter presenter();

}

interface Presenter {

void saveLanguage(String language);
default void saveLanguage(String language) {

}

default void startForm(String formName, String entityId, String metadata, String currentLocationId) {

}

void startForm(String formName, String entityId, String metadata, String currentLocationId);
default void saveForm(String jsonString, @NonNull RegisterParams registerParams) {

void saveForm(String jsonString, @NonNull RegisterParams registerParams);
}

Interactor createInteractor();
default Interactor createInteractor() {
return null;
}
}

interface Model {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ interface View {

interface Presenter {

void updateSortAndFilter(List<IField> filterList, IField sortField);
default void updateSortAndFilter(List<IField> filterList, IField sortField) {}

String getMainCondition();
default String getMainCondition() { return null; }

String getDefaultSortQuery();
default String getDefaultSortQuery() { return null; }

String getQueryTable();
default String getQueryTable() {return null; }
}

interface Model {
Expand Down

0 comments on commit 53ba300

Please sign in to comment.