Created
November 2, 2022 13:27
-
-
Save Wajahat-Jawaid/241346dfbe4c7f11f2e8386961552409 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 FileRepository { | |
/** | |
* Get the files from whatever the directory provided | |
* */ | |
suspend fun getJetFiles(parentFile: File): Result<List<JetFile>> | |
/** | |
* Observe the current favorites | |
*/ | |
fun observeFavorites(): Flow<Set<String>> | |
/** | |
* Toggle a fileUri to be a favorite or not. | |
*/ | |
suspend fun toggleFavorite(fileUri: String) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment