Last active
January 18, 2020 23:59
-
-
Save Rasalexman/755d3e7263c76b75c634ef1f048520c0 to your computer and use it in GitHub Desktop.
Repository abstraction with Flow
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 IPageRepository { | |
suspend fun getNextPageData(eventPageLiveData: LiveData<ViewEvent<Int>>): Flow<Result<List<MyUIModel>>> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment