-
-
Save CristianMG/bbba4c19d0ecbb4b8bf33061f3c6f8b5 to your computer and use it in GitHub Desktop.
Android paging Network + Database 3 snippet
This file contains hidden or 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
| override fun characters(offset: Int, sizePage: Int): Single<List<CharacterEntity>> { | |
| val ts = apiInf.ts | |
| return retrofit.create(NetworkCalls::class.java) | |
| .getCharacters(ts, apiInf.publicApiKey, apiInf.getHash(ts), offset, sizePage,"name") | |
| .subscribeOn(Schedulers.io()) | |
| .map { it.getDataOrError().results } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment