UsersRemoteMediator
class UsersRemoteMediator(apiService: UsersApiService, dataService: UsersDataService, preferences: UsersPreferences) : RemoteMediator<Int, UserModel>
Content copied to clipboard
Paging list with room cache RemoteMediator
Author
Vitaliy Zarubin
See also
Parameters
apiService
query service module
dataService
service room db
preferences
service shared preferences
Constructors
UsersRemoteMediator
Link copied to clipboard
fun UsersRemoteMediator(apiService: UsersApiService, dataService: UsersDataService, preferences: UsersPreferences)
Content copied to clipboard
Types
Functions
initialize
Link copied to clipboard
Timeout cache for refresh list at start
load
Link copied to clipboard
open suspend override fun load(loadType: LoadType, state: PagingState<Int, UserModel>): RemoteMediator.MediatorResult
Content copied to clipboard
Base logic
Properties
apiService
Link copied to clipboard
dataService
Link copied to clipboard
preferences
Link copied to clipboard