正在查看: CityMall v1.42.1 应用的 AdSterRestAdapterImpl.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: CityMall v1.42.1 应用的 AdSterRestAdapterImpl.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.adster.sdk.mediation.adster;
import K6.i;
import com.adster.sdk.mediation.AdConfiguration;
import com.adster.sdk.mediation.AdConfigurationProvider;
import com.adster.sdk.mediation.AdSter;
import com.adster.sdk.mediation.Config;
import java.util.Map;
import kotlin.Lazy;
import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.j;
import kotlin.jvm.internal.k;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import p7.s;
import retrofit2.Response;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
@Metadata
public final class AdSterRestAdapterImpl implements AdSterRestAdapter {
@NotNull
private static String BASE_URL;
@NotNull
public static final AdSterRestAdapterImpl INSTANCE = new AdSterRestAdapterImpl();
@NotNull
private static final Lazy restApi$delegate;
public static final class a extends k implements Function0<AdSterApiService> {
public static final a f10451a = new a();
public a() {
super(0);
}
public final Object invoke() {
return (AdSterApiService) new Retrofit.Builder().baseUrl(AdSterRestAdapterImpl.BASE_URL).client(new s.a().c()).addConverterFactory(GsonConverterFactory.create()).build().create(AdSterApiService.class);
}
}
static {
String str;
AdConfiguration adConfiguration;
Config config;
AdConfigurationProvider adConfigurationProvider$AdsterSDK_release = AdSter.INSTANCE.getAdConfigurationProvider$AdsterSDK_release();
if (adConfigurationProvider$AdsterSDK_release == null || (adConfiguration = adConfigurationProvider$AdsterSDK_release.getAdConfiguration()) == null || (config = adConfiguration.getConfig()) == null || (str = config.getAdSterEndPointUrl()) == null) {
str = "https://adreq.adster.tech/";
}
BASE_URL = str;
restApi$delegate = i.b(a.f10451a);
}
private AdSterRestAdapterImpl() {
}
private final AdSterApiService getRestApi() {
Object value = restApi$delegate.getValue();
j.h(value, "<get-restApi>(...)");
return (AdSterApiService) value;
}
@Override
@Nullable
public Object getAd(@NotNull Map<String, ? extends Object> map, @NotNull Continuation<? super Response<AdResponse>> continuation) {
return getRestApi().getAd(map, continuation);
}
}