PagingMapper
Author
skydoves (Jaewoong Eum)
Since
1.0.0
PagingMapper must be used in the PagingKeyConfig annotation, which maps the response type T to a list of R.
public class PokemonPagingMapper : PagingMapper<PokemonResponse, Pokemon> {
override fun map(value: PokemonResponse): List<Pokemon> {
return value.results
}
}
Content copied to clipboard