SDK forecast: add default values

This commit is contained in:
MM20 2024-02-07 23:49:38 +01:00
parent 6bc77cd8b8
commit 34fcc7d3c0
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -107,7 +107,7 @@ data class Forecast(
/**
* Unix timestamp of the time that this forecast was created, in milliseconds
*/
val createdAt: Long,
val createdAt: Long = System.currentTimeMillis(),
/**
* The temperature
* @see [Double].[C]
@ -188,5 +188,5 @@ data class Forecast(
/**
* Url to the provider and more weather information
*/
val providerUrl: String?,
val providerUrl: String? = null,
)