Implement missing methods

This commit is contained in:
neslihanturan 2019-05-14 10:19:08 +03:00
parent a1e3b2ef6d
commit 3da8e301a4
4 changed files with 6 additions and 9 deletions

View file

@ -5,7 +5,7 @@ package fr.free.nrw.commons.nearby.mvp.contract;
* this interface. This interface can be considered parent
* of both NearbyMapContract and NearbyListContract
*/
public interface NearbyContract {
public interface NearbyElementContract {
interface View {
void showPlaces();

View file

@ -1,7 +1,5 @@
package fr.free.nrw.commons.nearby.mvp.contract;
import fr.free.nrw.commons.nearby.mvp.contract.NearbyContract;
/**
* This interface defines specific View and UserActions for list
* part of the nearby. On the other hand both extends methods
@ -10,11 +8,11 @@ import fr.free.nrw.commons.nearby.mvp.contract.NearbyContract;
*/
public interface NearbyListContract {
interface View extends NearbyContract.View {
interface View extends NearbyElementContract.View {
// Even if this is empty for now, I keep this one for code consistency
}
interface UserActions extends NearbyContract.UserActions {
interface UserActions extends NearbyElementContract.UserActions {
void expandItem();
}
}

View file

@ -1,7 +1,5 @@
package fr.free.nrw.commons.nearby.mvp.contract;
import fr.free.nrw.commons.nearby.mvp.contract.NearbyContract;
/**
* This interface defines specific View and UserActions for map
* part of the nearby. On the other hand both extends methods
@ -10,13 +8,13 @@ import fr.free.nrw.commons.nearby.mvp.contract.NearbyContract;
*/
public interface NearbyMapContract {
interface View extends NearbyContract.View{
interface View extends NearbyElementContract.View{
void showSearchThisAreaButton();
void showInformationBottomSheet();
void showFABs();
}
interface UserActions extends NearbyContract.UserActions {
interface UserActions extends NearbyElementContract.UserActions {
void searchThisArea();
void recenterMap();
}

View file

@ -3,6 +3,7 @@ package fr.free.nrw.commons.nearby.mvp.presenter;
import fr.free.nrw.commons.nearby.mvp.contract.NearbyListContract;
public class NearbyListPresenter implements NearbyListContract.UserActions {
@Override
public void expandItem() {