Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Entity(tableName = WEATHER_TABLE_NAME)
- data class WeatherEntity(@PrimaryKey val id: Int? = 0,
- val weather: ArrayList<Weather>?,
- @Embedded
- val main: MainInfo?,
- val name: String? = "") : DomainMapper<WeatherInfo> {
- override fun mapToDomainModel() = WeatherInfo(main?.temp ?: 0.0, main?.humidity ?: 0, main?.pressure ?: 0.0)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement