Last active
June 26, 2023 22:09
-
-
Save tdcolvin/69eecfbbee8916b6cb526334c2828ae8 to your computer and use it in GitHub Desktop.
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
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