123456789101112131415161718192021222324252627282930313233343536 |
- package com.ted.weather.data.db
- import java.util.*
- class CityForecast(val map: MutableMap<String, Any?>, val dailyForecast: List<DayForecast>) {
- var _id: Long by map
- var city: String by map
- var country: String by map
- constructor(id: Long, city: String, country: String, dailyForecast: List<DayForecast>)
- : this(HashMap(), dailyForecast) {
- this._id = id
- this.city = city
- this.country = country
- }
- }
- class DayForecast(var map: MutableMap<String, Any?>) {
- var _id: Long by map
- var date: Long by map
- var description: String by map
- var high: Int by map
- var low: Int by map
- var iconUrl: String by map
- var cityId: Long by map
- constructor(date: Long, description: String, high: Int, low: Int, iconUrl: String, cityId: Long)
- : this(HashMap()) {
- this.date = date
- this.description = description
- this.high = high
- this.low = low
- this.iconUrl = iconUrl
- this.cityId = cityId
- }
- }
|