-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugs fixed and data is showing. That should be all for this feature.
- Loading branch information
1 parent
953d082
commit 8f7c31f
Showing
9 changed files
with
71 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
...e_all_in_one/android_architectures/clean_code_with_mvi_mvvm/data/remote/CurrentWeather.kt
This file was deleted.
Oops, something went wrong.
18 changes: 15 additions & 3 deletions
18
...k_compose_all_in_one/android_architectures/clean_code_with_mvi_mvvm/data/remote/Hourly.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
package com.example.jetpack_compose_all_in_one.android_architectures.clean_code_with_mvi_mvvm.data.remote | ||
|
||
import com.squareup.moshi.Json | ||
import com.squareup.moshi.JsonClass | ||
|
||
@JsonClass(generateAdapter = true) | ||
data class Hourly( | ||
val relativehumidity_2m: List<Int>, | ||
val temperature_2m: List<Double>, | ||
@Json(name = "pressure_msl") | ||
val pressureMsl: List<Double>, | ||
@Json(name = "relativehumidity_2m") | ||
val relativehumidity2m: List<Int>, | ||
@Json(name = "temperature_2m") | ||
val temperature2m: List<Double>, | ||
@Json(name = "time") | ||
val time: List<String>, | ||
val windspeed_10m: List<Double> | ||
@Json(name = "weathercode") | ||
val weathercode: List<Int>, | ||
@Json(name = "windspeed_10m") | ||
val windspeed10m: List<Double> | ||
) |
18 changes: 15 additions & 3 deletions
18
...pose_all_in_one/android_architectures/clean_code_with_mvi_mvvm/data/remote/HourlyUnits.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
package com.example.jetpack_compose_all_in_one.android_architectures.clean_code_with_mvi_mvvm.data.remote | ||
|
||
import com.squareup.moshi.Json | ||
import com.squareup.moshi.JsonClass | ||
|
||
@JsonClass(generateAdapter = true) | ||
data class HourlyUnits( | ||
val relativehumidity_2m: String, | ||
val temperature_2m: String, | ||
@Json(name = "pressure_msl") | ||
val pressureMsl: String, | ||
@Json(name = "relativehumidity_2m") | ||
val relativehumidity2m: String, | ||
@Json(name = "temperature_2m") | ||
val temperature2m: String, | ||
@Json(name = "time") | ||
val time: String, | ||
val windspeed_10m: String | ||
@Json(name = "weathercode") | ||
val weathercode: String, | ||
@Json(name = "windspeed_10m") | ||
val windspeed10m: String | ||
) |
17 changes: 0 additions & 17 deletions
17
...e_all_in_one/android_architectures/clean_code_with_mvi_mvvm/data/remote/WeatherDataDto.kt
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
...mpose_all_in_one/android_architectures/clean_code_with_mvi_mvvm/data/remote/WeatherDto.kt
This file was deleted.
Oops, something went wrong.
22 changes: 17 additions & 5 deletions
22
..._all_in_one/android_architectures/clean_code_with_mvi_mvvm/data/remote/WeatherResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,26 @@ | ||
package com.example.jetpack_compose_all_in_one.android_architectures.clean_code_with_mvi_mvvm.data.remote | ||
|
||
import com.squareup.moshi.Json | ||
import com.squareup.moshi.JsonClass | ||
|
||
@JsonClass(generateAdapter = true) | ||
data class WeatherResponse( | ||
val current_weather: CurrentWeather, | ||
@Json(name = "elevation") | ||
val elevation: Double, | ||
val generationtime_ms: Double, | ||
@Json(name = "generationtime_ms") | ||
val generationtimeMs: Double, | ||
@Json(name = "hourly") | ||
val hourly: Hourly, | ||
val hourly_units: HourlyUnits, | ||
@Json(name = "hourly_units") | ||
val hourlyUnits: HourlyUnits, | ||
@Json(name = "latitude") | ||
val latitude: Double, | ||
@Json(name = "longitude") | ||
val longitude: Double, | ||
@Json(name = "timezone") | ||
val timezone: String, | ||
val timezone_abbreviation: String, | ||
val utc_offset_seconds: Int | ||
@Json(name = "timezone_abbreviation") | ||
val timezoneAbbreviation: String, | ||
@Json(name = "utc_offset_seconds") | ||
val utcOffsetSeconds: Int | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters