Add javadocs and specific interfaces for list

This commit is contained in:
neslihanturan 2019-05-12 10:32:09 +03:00
parent 3b63d9ca2f
commit 24a85a16a3
3 changed files with 30 additions and 2 deletions

View file

@ -1,6 +1,7 @@
package fr.free.nrw.commons.nearby.mvp; package fr.free.nrw.commons.nearby.mvp;
public interface NearbyContract { public interface NearbyContract {
interface View { interface View {
void showPlaces(); void showPlaces();
} }
@ -10,7 +11,8 @@ public interface NearbyContract {
void uploadImageCamera(); void uploadImageCamera();
void bookmarkItem(); void bookmarkItem();
void getDirections(); void getDirections();
void openWikidata(); void seeWikidataItem();
void seeWikipediaArticle();
void rotateScreen(); void rotateScreen();
} }
} }

View file

@ -0,0 +1,19 @@
package fr.free.nrw.commons.nearby.mvp;
/**
* This interface defines specific View and UserActions for list
* part of the nearby. On the other hand both extends methods
* from parent View and UserActions where general methods are
* defined (in Nearby Contract)
*/
public interface NearbyListContract {
interface View extends NearbyContract.View {
}
interface UserActions extends NearbyContract.UserActions {
void openCommonsFilePage();
void expandItem();
}
}

View file

@ -1,6 +1,13 @@
package fr.free.nrw.commons.nearby.mvp; package fr.free.nrw.commons.nearby.mvp;
/**
* This interface defines specific View and UserActions for map
* part of the nearby. On the other hand both extends methods
* from parent View and UserActions where general methods are
* defined (in Nearby Contract)
*/
public interface NearbyMapContract { public interface NearbyMapContract {
interface View extends NearbyContract.View{ interface View extends NearbyContract.View{
void showSearchThisAreaButton(); void showSearchThisAreaButton();
void showInformationBottomSheet(); void showInformationBottomSheet();