RetrofitModule

@Module
object RetrofitModule

Functions

Link copied to clipboard
@Provides
@Singleton
fun provideCache(context: Context): Cache
Link copied to clipboard
@Provides
@Singleton
fun provideConvertor(): GsonConverterFactory
Link copied to clipboard
@Provides
@Singleton
fun provideOkHttpClient(context: Context, cache: Cache): OkHttpClient
Link copied to clipboard
@Provides
@Singleton
fun provideRetrofit(gsonConverterFactory: GsonConverterFactory, okHttpClient: OkHttpClient): Retrofit
Link copied to clipboard
@Provides
@Singleton
fun provideSyllabusApi(retrofit: Retrofit): BitAppApiService