package de.westnordost.streetcomplete.data.osm; import android.os.Bundle; import de.westnordost.osmapi.map.data.BoundingBox; import de.westnordost.streetcomplete.data.QuestType; import de.westnordost.streetcomplete.data.osm.changes.StringMapChangesBuilder; import de.westnordost.streetcomplete.data.osm.download.MapDataWithGeometryHandler; public interface OsmElementQuestType extends QuestType { /** applies the data from answer to the given element */ void applyAnswerTo(Bundle answer, StringMapChangesBuilder changes); /** @return the commit message to be used for this quest type */ String getCommitMessage(); /** Downloads map data for this quest type * * @param bbox the area in which it should be downloaded * @param handler called for each element for which this quest type applies * @return true if successful (false if interrupted) */ boolean download(BoundingBox bbox, MapDataWithGeometryHandler handler); }