refactor(shared): move WikipediaPage/Detail, DigitaltMuseumItem, FornsokItem to commonMain; remove duplicates in :app
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package app.klottr.net
|
||||
|
||||
data class DigitaltMuseumItem(
|
||||
val id: String,
|
||||
val title: String,
|
||||
val lat: Double,
|
||||
val lon: Double,
|
||||
val url: String? = null, // mm.dimu.org-länk om möjligt
|
||||
val uniqueId: String? = null,
|
||||
val webUrl: String? = null, // publika objektsidan
|
||||
val owner: String? = null // identifier.owner
|
||||
)
|
||||
11
shared/src/commonMain/kotlin/app/klottr/net/FornsokItem.kt
Normal file
11
shared/src/commonMain/kotlin/app/klottr/net/FornsokItem.kt
Normal file
@@ -0,0 +1,11 @@
|
||||
package app.klottr.net
|
||||
|
||||
data class FornsokItem(
|
||||
val id: String,
|
||||
val title: String,
|
||||
val lat: Double,
|
||||
val lon: Double,
|
||||
val uri: String? = null,
|
||||
val serviceName: String? = null,
|
||||
val desc: String? = null
|
||||
)
|
||||
@@ -0,0 +1,14 @@
|
||||
package app.klottr.net
|
||||
|
||||
data class WikipediaPage(
|
||||
val pageId: Long,
|
||||
val title: String,
|
||||
val lat: Double,
|
||||
val lon: Double
|
||||
)
|
||||
|
||||
data class WikipediaDetail(
|
||||
val pageId: Long,
|
||||
val title: String,
|
||||
val extract: String
|
||||
)
|
||||
Reference in New Issue
Block a user