Created
March 22, 2020 16:09
-
-
Save mcatta/2cf6a7edfd5db84bd0b7e6f57e40818c to your computer and use it in GitHub Desktop.
Return an RX Java object
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 DataRepository { | |
fun fetchDataWithRX(): Single<List<DataModel>> { | |
return Single.just(listOf( | |
DataModel(1, "Value 1"), DataModel(2, "Value 2"), | |
DataModel(3, "Value 3"), DataModel(4, "Value 4") | |
)) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment