-
-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "only for return delivieries" option (fixes #5687)
- Loading branch information
1 parent
885b201
commit 9a7cc6a
Showing
4 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...a/de/westnordost/streetcomplete/quests/parcel_locker_mail_in/AddParcelLockerMailInForm.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package de.westnordost.streetcomplete.quests.parcel_locker_mail_in | ||
|
||
import de.westnordost.streetcomplete.R | ||
import de.westnordost.streetcomplete.quests.AbstractOsmQuestForm | ||
import de.westnordost.streetcomplete.quests.AnswerItem | ||
|
||
class AddParcelLockerMailInForm : AbstractOsmQuestForm<ParcelLockerMailIn>() { | ||
override val buttonPanelAnswers = listOf( | ||
AnswerItem(R.string.quest_generic_hasFeature_no) { applyAnswer(ParcelLockerMailIn.NO) }, | ||
AnswerItem(R.string.quest_generic_hasFeature_yes) { applyAnswer(ParcelLockerMailIn.YES ) }, | ||
) | ||
|
||
override val otherAnswers get() = listOf( | ||
AnswerItem(R.string.quest_wheelchairAccessPat_noToilet) { | ||
applyAnswer(ParcelLockerMailIn.RETURNS_ONLY) | ||
} | ||
) | ||
} |
7 changes: 7 additions & 0 deletions
7
...ain/java/de/westnordost/streetcomplete/quests/parcel_locker_mail_in/ParcelLockerMailIn.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package de.westnordost.streetcomplete.quests.parcel_locker_mail_in | ||
|
||
enum class ParcelLockerMailIn(val osmValue: String) { | ||
YES("yes"), | ||
NO("no"), | ||
RETURNS_ONLY("returns_only") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters