mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 05:13:53 +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;
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
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();
|
||||||
void showFABs();
|
void showFABs();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue