Skip to content

Instantly share code, notes, and snippets.

@arnaudgiuliani
Last active April 30, 2018 09:27
Show Gist options
  • Select an option

  • Save arnaudgiuliani/6a416ccf33b142db8efb2e2e01894489 to your computer and use it in GitHub Desktop.

Select an option

Save arnaudgiuliani/6a416ccf33b142db8efb2e2e01894489 to your computer and use it in GitHub Desktop.
Android Room components #1
@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