Package ai.tock.iadvize.client
Class RetrofitKt
-
- All Implemented Interfaces:
public final class RetrofitKt
-
-
Method Summary
Modifier and Type Method Description final static Retrofit.BuilderretrofitBuilderWithTimeoutAndLogger(Long ms, KLogger logger, List<Interceptor> interceptors, Proxy proxy)Creates a Retrofit client. final static InterceptortokenAuthenticationInterceptor(Function0<String> token)Creates authentication interceptor. -
-
Method Detail
-
retrofitBuilderWithTimeoutAndLogger
final static Retrofit.Builder retrofitBuilderWithTimeoutAndLogger(Long ms, KLogger logger, List<Interceptor> interceptors, Proxy proxy)
Creates a Retrofit client.
-
tokenAuthenticationInterceptor
final static Interceptor tokenAuthenticationInterceptor(Function0<String> token)
Creates authentication interceptor.
-
-
-
-