Created
August 5, 2019 14:17
-
-
Save HarryTylenol/eeaafc2a1710e297b3e9e6ead667abf6 to your computer and use it in GitHub Desktop.
0003_5
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
private val festivalRequest = MutableLiveData<An>() | |
private val festivalResponse = festivalRequest.map { getFestivalUseCase.execute(it) } | |
val festival = festivalResponse.switchMap { it.data } | |
val festivalState = festivalResponse.switchMap { it.state } | |
val festivalRefreshState = festivalResponse.switchMap { it.refreshState } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment