DomainClasses.kt 432 B

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