ref: 5d029c3915c5561fa70da7501930a6d58b8ce8c0
app/src/main/java/ml/adamsprogs/bimba/models/suggestions/StopSuggestion.kt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
package ml.adamsprogs.bimba.models.suggestions import ml.adamsprogs.bimba.R class StopSuggestion(name: String, val zone: String) : GtfsSuggestion(name) { override fun getBody(): String { return name } override fun getIcon(): Int { return R.drawable.ic_stop } override fun getColour(): Int { return 0xffffff } override fun getBgColour(): Int { return 0x000000 } override fun compareTo(other: GtfsSuggestion): Int { return name.compareTo(other.name) } override fun equals(other: Any?): Boolean { if (other == null || other !is GtfsSuggestion) return false return name == other.name } override fun hashCode(): Int { var result = zone.hashCode() result = 31 * result + name.hashCode() return result } } |