Last active
June 27, 2023 10:33
-
-
Save tdcolvin/28292b0f171406efae20b6fbb552b88e 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
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