123456789101112 |
- package com.ted.weather.domain.model
- data class ForecastList(val id: Long, val city: String, val country: String,
- val dailyForecast: List<Forecast>) {
- val size: Int get() = dailyForecast.size
- operator fun get(position: Int) = dailyForecast[position]
- }
- data class Forecast(val id: Long, val date: Long, val description: String, val high: Int,
- val low: Int, val iconUrl: String)
|