Add weather plugin language parameter

This commit is contained in:
MM20
2023-12-17 19:30:59 +01:00
parent d98fc29fba
commit 1c542f38ba
4 changed files with 37 additions and 13 deletions
@@ -1,6 +1,10 @@
package de.mm20.launcher2.plugin.config
data class WeatherPluginConfig(
val supportsAutoLocation: Boolean,
val supportsCustomLocation: Boolean,
/**
* Minimum time (in ms) that needs to pass before the provider can be queried again.
* Note that updates can be triggered sooner if the user manually changes their location
* or weather provider.
*/
val minUpdateInterval: Long = 60 * 60 * 1000L,
)
@@ -11,6 +11,7 @@ object WeatherPluginContract {
const val Lon = "lon"
const val Id = "id"
const val LocationName = "location_name"
const val Language = "lang"
}
object ForecastColumns {
@@ -36,6 +37,7 @@ object WeatherPluginContract {
object LocationParams {
const val Query = "query"
const val Language = "lang"
}
object LocationColumns {