Search in sources :

Example 1 with RevertFinishedEvent

use of io.jawg.osmcontributor.model.events.RevertFinishedEvent in project osm-contributor by jawg.

the class PoiManager method onPleaseRevertPoiEvent.

@Subscribe(threadMode = ThreadMode.ASYNC)
public void onPleaseRevertPoiEvent(PleaseRevertPoiEvent event) {
    Poi poi = revertPoi(event.getIdToRevert());
    bus.post(new RevertFinishedEvent(poi, LocationMarkerView.MarkerType.POI));
}
Also used : Poi(io.jawg.osmcontributor.model.entities.Poi) RevertFinishedEvent(io.jawg.osmcontributor.model.events.RevertFinishedEvent) Subscribe(org.greenrobot.eventbus.Subscribe)

Example 2 with RevertFinishedEvent

use of io.jawg.osmcontributor.model.events.RevertFinishedEvent in project osm-contributor by jawg.

the class PoiManager method onPleaseRevertPoiNodeRefEvent.

@Subscribe(threadMode = ThreadMode.ASYNC)
public void onPleaseRevertPoiNodeRefEvent(PleaseRevertPoiNodeRefEvent event) {
    PoiNodeRef poiNodeRef = revertPoiNodeRef(event.getIdToRevert());
    bus.post(new RevertFinishedEvent(poiNodeRef, LocationMarkerView.MarkerType.NODE_REF));
}
Also used : PoiNodeRef(io.jawg.osmcontributor.model.entities.PoiNodeRef) RevertFinishedEvent(io.jawg.osmcontributor.model.events.RevertFinishedEvent) Subscribe(org.greenrobot.eventbus.Subscribe)

Aggregations

RevertFinishedEvent (io.jawg.osmcontributor.model.events.RevertFinishedEvent)2 Subscribe (org.greenrobot.eventbus.Subscribe)2 Poi (io.jawg.osmcontributor.model.entities.Poi)1 PoiNodeRef (io.jawg.osmcontributor.model.entities.PoiNodeRef)1