Package com.
devbase.
data.
source.
web.
libs
Defines basic configuration for retrofit
and okhttp
for application.
Types
Link copied to clipboard
class DevPagingSource<data : Any>(action: (Int) -> Single<List<data>>) : RxPagingSource<Int, data>
Content copied to clipboard
Jetpack Paging Implementation using RxJava3
Link copied to clipboard
Functions
Link copied to clipboard
fun createOkHttpClient( ctx: Context, interceptors: Array<Interceptor>, authenticator: Authenticator?, pinner: CertificatePinner?, showDebugLog: Boolean): OkHttpClient
Content copied to clipboard
Method to create OkHttpClient with provided data
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <socketService : Any> createWebSocket(okhttp: OkHttpClient, url: String): socketService
Content copied to clipboard
method to build webSocket service
Link copied to clipboard
fun <data : Any> toPagingData(pageSize: Int, action: (Int) -> Single<List<data>>): Flowable<PagingData<data>>
Content copied to clipboard
Method to convert API call to Pager