mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Add javadocs and specific interfaces for list
This commit is contained in:
parent
3b63d9ca2f
commit
24a85a16a3
3 changed files with 30 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package fr.free.nrw.commons.nearby.mvp;
|
||||
|
||||
public interface NearbyContract {
|
||||
|
||||
interface View {
|
||||
void showPlaces();
|
||||
}
|
||||
|
|
@ -10,7 +11,8 @@ public interface NearbyContract {
|
|||
void uploadImageCamera();
|
||||
void bookmarkItem();
|
||||
void getDirections();
|
||||
void openWikidata();
|
||||
void seeWikidataItem();
|
||||
void seeWikipediaArticle();
|
||||
void rotateScreen();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +1,14 @@
|
|||
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 {
|
||||
interface View extends NearbyContract.View {
|
||||
|
||||
interface View extends NearbyContract.View{
|
||||
void showSearchThisAreaButton();
|
||||
void showInformationBottomSheet();
|
||||
void showFABs();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue