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>

Jetpack Paging Implementation using RxJava3

Link copied to clipboard
object UnsuccessfulResponseHandler

Functions

Link copied to clipboard
fun createOkHttpClient(    ctx: Context,     interceptors: Array<Interceptor>,     authenticator: Authenticator?,     pinner: CertificatePinner?,     showDebugLog: Boolean): OkHttpClient

Method to create OkHttpClient with provided data

Link copied to clipboard
fun <S> createReactiveService(    serviceClass: Class<S>,     okhttpClient: OkHttpClient,     baseURl: String): S

Method to create reactive Service with Retrofit

Link copied to clipboard
fun <S> createService(    serviceClass: Class<S>,     okhttpClient: OkHttpClient,     baseURl: String): S

Method to create Service with Retrofit without adapter factory

Link copied to clipboard
inline fun <socketService : Any> createWebSocket(okhttp: OkHttpClient, url: String): socketService

method to build webSocket service

Link copied to clipboard
fun <data : Any> toPagingData(pageSize: Int, action: (Int) -> Single<List<data>>): Flowable<PagingData<data>>

Method to convert API call to Pager