Skip to content

Instantly share code, notes, and snippets.

@tdcolvin
Last active June 27, 2023 10:33
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/28292b0f171406efae20b6fbb552b88e to your computer and use it in GitHub Desktop.
Save tdcolvin/28292b0f171406efae20b6fbb552b88e to your computer and use it in GitHub Desktop.
package com.tdcolvin.planetspotters.data.repository
...
interface PlanetsRepository {
fun getPlanetsFlow(): Flow<WorkResult<List<Planet>>>
fun getPlanetFlow(planetId: String): Flow<WorkResult<Planet?>>
suspend fun refreshPlanets()
suspend fun addPlanet(planet: Planet)
suspend fun deletePlanet(planetId: String)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment