-
-
Save MaxMichel2/71535b64c7789d56eb39daac1cff5f5c 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
interface TopicsRepository { | |
suspend fun getTopics(): DataResult<List<Topic>, TopicsRepositoryError> | |
suspend fun getTopic(id: String): Topic | |
sealed class TopicsRepositoryError { | |
data object NoTopics : TopicsRepositoryError() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment