mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 22:03:55 +01:00
* Converted welcome activity / pager to kotlin * Removed unused interface * Convert ViewPagerAdapter to kotlin and enforce that all tabs must have a title that comes from strings.xml * Convert OkHttpConnectionFactory and remove an exception class nobody was using * Convert MapController to kotlin along with fixing nullability in a few places
46 lines
1.4 KiB
Kotlin
46 lines
1.4 KiB
Kotlin
package fr.free.nrw.commons
|
|
|
|
import fr.free.nrw.commons.location.LatLng
|
|
import fr.free.nrw.commons.nearby.Place
|
|
|
|
abstract class MapController {
|
|
/**
|
|
* We pass this variable as a group of placeList and boundaryCoordinates
|
|
*/
|
|
inner class NearbyPlacesInfo {
|
|
@JvmField
|
|
var placeList: List<Place> = emptyList() // List of nearby places
|
|
|
|
@JvmField
|
|
var boundaryCoordinates: Array<LatLng> = emptyArray() // Corners of nearby area
|
|
|
|
@JvmField
|
|
var currentLatLng: LatLng? = null // Current location when this places are populated
|
|
|
|
@JvmField
|
|
var searchLatLng: LatLng? = null // Search location for finding this places
|
|
|
|
@JvmField
|
|
var mediaList: List<Media>? = null // Search location for finding this places
|
|
}
|
|
|
|
/**
|
|
* We pass this variable as a group of placeList and boundaryCoordinates
|
|
*/
|
|
inner class ExplorePlacesInfo {
|
|
@JvmField
|
|
var explorePlaceList: List<Place> = emptyList() // List of nearby places
|
|
|
|
@JvmField
|
|
var boundaryCoordinates: Array<LatLng> = emptyArray() // Corners of nearby area
|
|
|
|
@JvmField
|
|
var currentLatLng: LatLng? = null // Current location when this places are populated
|
|
|
|
@JvmField
|
|
var searchLatLng: LatLng? = null // Search location for finding this places
|
|
|
|
@JvmField
|
|
var mediaList: List<Media> = emptyList() // Search location for finding this places
|
|
}
|
|
}
|