导航菜单

页面标题

页面副标题

OLX India v19.42.007 - GaiaRemoteClientFactory.java 源代码

正在查看: OLX India v19.42.007 应用的 GaiaRemoteClientFactory.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.olxgroup.panamera.data.common.infrastructure.clients;

import com.olx.network.c;
import com.olx.network.e;
import com.olx.network.f;
import com.olxgroup.panamera.data.common.infrastructure.utils.JsonUtils;
import com.olxgroup.panamera.domain.common.infrastruture.repository.ApplicationSettings;
import com.olxgroup.panamera.domain.shell.LoggerDomainContract;
import java.io.File;
import java.util.Map;
import kotlin.Metadata;
import olx.com.delorean.data.net.NetworkDebugger;
import olx.com.delorean.data.net.RequestRetryInterceptor;
import olx.com.delorean.domain.service.ab.ABTestService;

@Metadata
public final class GaiaRemoteClientFactory implements RemoteClientFactory {
    private final ABTestService abTestService;
    private final String baseUrl;
    private final c botManagerService;
    private final File cacheDir;
    private final com.olx.network.internal.certificatepinner.b certificationManager;
    private final f networkConfiguration;
    private final long retriesWaits;

    public GaiaRemoteClientFactory(String str, File file, c cVar, LoggerDomainContract loggerDomainContract, ApplicationSettings applicationSettings, com.olx.network.internal.a aVar, NetworkDebugger networkDebugger, com.olx.network.internal.certificatepinner.b bVar, ABTestService aBTestService) {
        this.cacheDir = file;
        this.botManagerService = cVar;
        this.certificationManager = bVar;
        this.abTestService = aBTestService;
        String customHostURL = applicationSettings.isOnCustom() ? applicationSettings.getCustomHostURL() : "https://location.olx.in/";
        this.baseUrl = customHostURL;
        f fVar = new f(customHostURL, "android " + str, JsonUtils.getCustomGson(), applicationSettings.isDebugBuild(), applicationSettings.isLoggingEnabled(), aVar);
        this.networkConfiguration = fVar;
        this.retriesWaits = 500L;
        fVar.addInterceptor(new RequestRetryInterceptor(500L, cVar, loggerDomainContract));
        fVar.setCustomHeaders(applicationSettings.getCustomHeadersKeyValueMap());
        networkDebugger.addDebuggerTo(fVar);
    }

    @Override
    public <T> T createRemoteClient(Class<T> cls) {
        return (T) e.a(cls, this.networkConfiguration, this.cacheDir, this.certificationManager, (Map) null, this.botManagerService, (Map) null, this.abTestService.getConnectionTimeout());
    }
}