SDK forecast: add default values
This commit is contained in:
parent
6bc77cd8b8
commit
34fcc7d3c0
@ -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,
|
||||
)
|
||||
Loading…
x
Reference in New Issue
Block a user