Last active
April 30, 2018 09:27
-
-
Save arnaudgiuliani/6a416ccf33b142db8efb2e2e01894489 to your computer and use it in GitHub Desktop.
Android Room components #1
This file contains hidden or 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
| @Entity(tableName = "weather") | |
| data class WeatherEntity( | |
| @PrimaryKey | |
| val id: String, | |
| val location: String, | |
| val day: String, | |
| val temp_low: String, | |
| val temp_high: String, | |
| val wind_kph: Int, | |
| val wind_dir: String, | |
| val humidity: Int, | |
| val date: Date | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment