-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
61c62e0
commit ca05f3a
Showing
10 changed files
with
340 additions
and
2 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
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
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
15 changes: 15 additions & 0 deletions
15
app/src/main/java/app/waste2wealth/com/ktorClient/weather/dto/Current.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package app.waste2wealth.com.ktorClient.weather.dto | ||
|
||
|
||
import com.google.gson.annotations.SerializedName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class Current( | ||
@SerializedName("interval") | ||
val interval: Int?, | ||
@SerializedName("temperature_2m") | ||
val temperature: Double?, | ||
@SerializedName("time") | ||
val time: String? | ||
) |
15 changes: 15 additions & 0 deletions
15
app/src/main/java/app/waste2wealth/com/ktorClient/weather/dto/CurrentUnits.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package app.waste2wealth.com.ktorClient.weather.dto | ||
|
||
|
||
import com.google.gson.annotations.SerializedName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class CurrentUnits( | ||
@SerializedName("interval") | ||
val interval: String?, | ||
@SerializedName("temperature_2m") | ||
val temperature_2m: String?, | ||
@SerializedName("time") | ||
val time: String? | ||
) |
27 changes: 27 additions & 0 deletions
27
app/src/main/java/app/waste2wealth/com/ktorClient/weather/dto/HereWeather.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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package app.waste2wealth.com.ktorClient.weather.dto | ||
|
||
|
||
import com.google.gson.annotations.SerializedName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class HereWeather( | ||
@SerializedName("current") | ||
val current: Current?, | ||
@SerializedName("current_units") | ||
val currentUnits: CurrentUnits?, | ||
@SerializedName("elevation") | ||
val elevation: Double?, | ||
@SerializedName("generationtime_ms") | ||
val generationtimeMs: Double?, | ||
@SerializedName("latitude") | ||
val latitude: Double?, | ||
@SerializedName("longitude") | ||
val longitude: Double?, | ||
@SerializedName("timezone") | ||
val timezone: String?, | ||
@SerializedName("timezone_abbreviation") | ||
val timezoneAbbreviation: String?, | ||
@SerializedName("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
Oops, something went wrong.