Skip to content

Instantly share code, notes, and snippets.

@tdcolvin
Created June 15, 2023 23:31
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/a8c0714ceda7a9875c92cbd786741740 to your computer and use it in GitHub Desktop.
Save tdcolvin/a8c0714ceda7a9875c92cbd786741740 to your computer and use it in GitHub Desktop.
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