Skip to content

Commit

Permalink
One more step close to fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
myofficework000 committed Jun 30, 2023
1 parent 5d22a06 commit 953d082
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.example.jetpack_compose_all_in_one.android_architectures.clean_code_with_mvi_mvvm.data.remote

data class CurrentWeather(
val is_day: Int,
val temperature: Double,
val time: String,
val weathercode: Int,
val winddirection: Double,
val windspeed: Double
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.example.jetpack_compose_all_in_one.android_architectures.clean_code_with_mvi_mvvm.data.remote

data class Hourly(
val relativehumidity_2m: List<Int>,
val temperature_2m: List<Double>,
val time: List<String>,
val windspeed_10m: List<Double>
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.example.jetpack_compose_all_in_one.android_architectures.clean_code_with_mvi_mvvm.data.remote

data class HourlyUnits(
val relativehumidity_2m: String,
val temperature_2m: String,
val time: String,
val windspeed_10m: String
)
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ interface WeatherApi {
suspend fun getWeather(
@Query("latitude") latitude: Double,
@Query("longitude") longitude: Double,
): WeatherDto
): WeatherResponse
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.example.jetpack_compose_all_in_one.android_architectures.clean_code_with_mvi_mvvm.data.remote

data class WeatherResponse(
val current_weather: CurrentWeather,
val elevation: Double,
val generationtime_ms: Double,
val hourly: Hourly,
val hourly_units: HourlyUnits,
val latitude: Double,
val longitude: Double,
val timezone: String,
val timezone_abbreviation: String,
val utc_offset_seconds: Int
)

0 comments on commit 953d082

Please sign in to comment.