ref: 73cee3f10cf4b89f2e742db807d8f12bf4484548
app/src/main/java/xyz/apiote/bimba/czwek/repo/Interfaces.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 39 40 41 |
package xyz.apiote.bimba.czwek.repo import android.content.Context import android.graphics.drawable.Drawable import android.net.ConnectivityManager interface Queryable interface Locatable { fun icon(context: Context, scale: Float = 1f): Drawable fun location(): Position fun id(): String } interface Repository { suspend fun getDepartures( cm: ConnectivityManager, feedID: String, stop: String, line: String?, context: Context ): StopDepartures? suspend fun getLocatablesIn( cm: ConnectivityManager, bl: Position, tr: Position, context: Context ): List<Locatable>? suspend fun queryQueryables( cm: ConnectivityManager, query: String, context: Context ): List<Queryable>? suspend fun locateQueryables( cm: ConnectivityManager, position: Position, context: Context ): List<Queryable>? } |