Skip to content

Instantly share code, notes, and snippets.

@tdcolvin
Last active June 26, 2023 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdcolvin/69eecfbbee8916b6cb526334c2828ae8 to your computer and use it in GitHub Desktop.
Save tdcolvin/69eecfbbee8916b6cb526334c2828ae8 to your computer and use it in GitHub Desktop.
fun addSamplePlanets() {
viewModelScope.launch {
val planets = arrayOf(
Planet(name = "Skaro", distanceLy = 0.5F, discovered = Date()),
Planet(name = "Trenzalore", distanceLy = 5F, discovered = Date()),
Planet(name = "Galifrey", distanceLy = 80F, discovered = Date()),
)
planets.forEach { addPlanetUseCase(it) }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment