Created
June 15, 2023 23:31
-
-
Save tdcolvin/a8c0714ceda7a9875c92cbd786741740 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
override suspend fun addPlanet(planet: Planet) { | |
val planetWithId = remoteDataSource.addPlanet(planet) | |
localDataSource.addPlanet(planetWithId) | |
} | |
override suspend fun deletePlanet(planetId: String) { | |
remoteDataSource.deletePlanet(planetId) | |
localDataSource.deletePlanet(planetId) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment