Created
January 23, 2021 17:31
-
-
Save 1jGabriel/80ff356de3033125ca4ed878d9b6a320 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
class PersonageViewModel( | |
private val repository: PersonageRepository | |
) : ViewModel() { | |
fun getCharacters(): Flow<PagingData<CharacterUi>> { | |
return repository.getPersonages().cachedIn(viewModelScope) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment