Currency Plus v2.10.8版本的 MD5 值为:8586f74edd9ace5aa261a19c9da51484
以下内容为反编译后的 TelemetryConfig.java 源代码,内容仅作参考
package com.inmobi.commons.core.configs;
import androidx.annotation.Keep;
import com.google.android.gms.location.DeviceOrientationRequest;
import com.inmobi.commons.utils.json.Constructor;
import com.inmobi.media.b6;
import com.inmobi.media.b9;
import com.inmobi.media.f4;
import com.inmobi.media.u4;
import com.inmobi.media.wa;
import com.inmobi.media.x3;
import com.inmobi.media.xa;
import fi.a0;
import gi.u;
import java.util.ArrayList;
import java.util.List;
import kotlin.Metadata;
import ll.t;
import org.json.JSONObject;
import ti.l;
import xa.c;
@Keep
@Metadata(d1 = {"\u0000f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\b\u0003\n\u0002\u0010\u0006\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0010\t\n\u0002\b\r\n\u0002\u0018\u0002\n\u0002\b\u0010\b\u0007\u0018\u0000 ?2\u00020\u0001:\u0006@ABCDEB\u0011\u0012\b\u0010=\u001a\u0004\u0018\u00010\t¢\u0006\u0004\b>\u0010%J\b\u0010\u0003\u001a\u00020\u0002H\u0002J\b\u0010\u0005\u001a\u00020\u0004H\u0002J\u0010\u0010\b\u001a\u00020\u00072\u0006\u0010\u0006\u001a\u00020\u0000H\u0007J\b\u0010\n\u001a\u00020\tH\u0016J\b\u0010\u000b\u001a\u00020\u0007H\u0016J\b\u0010\r\u001a\u00020\fH\u0016J\u0006\u0010\u000f\u001a\u00020\u000eJ\u0006\u0010\u0010\u001a\u00020\u000eJ\u0006\u0010\u0011\u001a\u00020\u0007J\f\u0010\u0013\u001a\b\u0012\u0004\u0012\u00020\t0\u0012J\u0006\u0010\u0014\u001a\u00020\u0007J\u0006\u0010\u0015\u001a\u00020\tJ\u0006\u0010\u0017\u001a\u00020\u0016J\u0006\u0010\u0019\u001a\u00020\u0018J\u0006\u0010\u001b\u001a\u00020\u001aJ\u0006\u0010\u001c\u001a\u00020\u001aJ\u0006\u0010\u001e\u001a\u00020\u001dJ\u0006\u0010\u001f\u001a\u00020\u0004R\"\u0010 \u001a\u00020\t8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b \u0010!\u001a\u0004\b\"\u0010#\"\u0004\b$\u0010%R\u001c\u0010'\u001a\n &*\u0004\u0018\u00010\t0\t8\u0002X\u0083\u0004¢\u0006\u0006\n\u0004\b'\u0010!R\u0016\u0010)\u001a\u00020(8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b)\u0010*R\u0016\u0010+\u001a\u00020\u001a8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b+\u0010,R\u0016\u0010-\u001a\u00020\u001a8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b-\u0010,R\u0016\u0010.\u001a\u00020(8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b.\u0010*R\u0016\u0010/\u001a\u00020\u00078\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b/\u00100R\u0016\u00101\u001a\u00020(8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b1\u0010*R\u0016\u00102\u001a\u00020\u00168\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b2\u00103R\u001c\u00104\u001a\b\u0012\u0004\u0012\u00020\t0\u00128\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b4\u00105R\u0016\u00107\u001a\u0002068\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b7\u00108R\u0016\u00109\u001a\u00020\u00048\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b9\u0010:R\u0016\u0010;\u001a\u00020\u00188\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b;\u0010<¨\u0006F"}, d2 = {"Lcom/inmobi/commons/core/configs/TelemetryConfig;", "Lcom/inmobi/commons/core/configs/Config;", "Lfi/a0;", "setDefaultNetworkConfig", "Lcom/inmobi/commons/core/configs/TelemetryConfig$AssetReportingConfig;", "getDefaultAssetReportingConfig", "config", "", "isSameAs", "", "getType", "isValid", "Lorg/json/JSONObject;", "toJson", "Lcom/inmobi/media/b9$a;", "getMobileConfig", "getWifiConfig", "isGeneralEventsDisabled", "", "getPriorityEventsList", "getEnabled", "getUrl", "", "getSamplingFactor", "Lcom/inmobi/commons/core/configs/TelemetryConfig$LoggingConfig;", "getLoggingConfig", "", "getMaxRetryCount", "getMaxEventsToPersist", "Lcom/inmobi/media/x3;", "getEventConfig", "getAssetConfig", "telemetryUrl", "Ljava/lang/String;", "getTelemetryUrl", "()Ljava/lang/String;", "setTelemetryUrl", "(Ljava/lang/String;)V", "kotlin.jvm.PlatformType", "TAG", "", "processingInterval", "J", "maxRetryCount", "I", "maxEventsToPersist", "eventTTL", "disableAllGeneralEvents", "Z", "txLatency", "samplingFactor", "D", "priorityEvents", "Ljava/util/List;", "Lcom/inmobi/commons/core/configs/TelemetryConfig$Base;", "base", "Lcom/inmobi/commons/core/configs/TelemetryConfig$Base;", "assetReporting", "Lcom/inmobi/commons/core/configs/TelemetryConfig$AssetReportingConfig;", "loggingConfig", "Lcom/inmobi/commons/core/configs/TelemetryConfig$LoggingConfig;", "accountId", "<init>", "Companion", "AdTypeLoggingConfig", "AssetReportingConfig", "Base", "a", "LoggingConfig", "PlacementTypeLoggingConfig", "media_release"}, k = 1, mv = {1, 5, 1})
public final class TelemetryConfig extends Config {
public static final a Companion = new a();
public static final boolean DEFAULT_DISABLE_GENERAL_EVENTS = false;
public static final long DEFAULT_EVENT_TTL_SEC = 604800;
public static final long DEFAULT_INGESTION_LATENCY_SEC = 86400;
public static final boolean DEFAULT_IS_ENABLED = true;
public static final int DEFAULT_MAX_BATCH_SIZE = 20;
public static final int DEFAULT_MAX_EVENTS_TO_PERSIST = 1000;
public static final int DEFAULT_MAX_RETRIES = 1;
public static final int DEFAULT_MIN_BATCH_SIZE = 5;
public static final long DEFAULT_PROCESSING_INTERVAL_SEC = 30;
public static final long DEFAULT_RETRY_INTERVAL_SEC = 60;
public static final double DEFAULT_SAMPLING_FACTOR = 0.0d;
public static final String DEFAULT_URL = "https://telemetry.sdk.inmobi.com/metrics";
@u4
private final String TAG;
private AssetReportingConfig assetReporting;
private Base base;
private boolean disableAllGeneralEvents;
private long eventTTL;
private LoggingConfig loggingConfig;
private int maxEventsToPersist;
private int maxRetryCount;
private b9 networkType;
private List<String> priorityEvents;
private long processingInterval;
private double samplingFactor;
private String telemetryUrl;
private long txLatency;
@Keep
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\n\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\n\u0010\u000bR$\u0010\u0004\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\u0004\u0010\u0005\u001a\u0004\b\u0006\u0010\u0007R$\u0010\b\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\b\u0010\u0005\u001a\u0004\b\t\u0010\u0007¨\u0006\f"}, d2 = {"Lcom/inmobi/commons/core/configs/TelemetryConfig$AdTypeLoggingConfig;", "", "Lcom/inmobi/commons/core/configs/TelemetryConfig$PlacementTypeLoggingConfig;", "<set-?>", "ab", "Lcom/inmobi/commons/core/configs/TelemetryConfig$PlacementTypeLoggingConfig;", "getAb", "()Lcom/inmobi/commons/core/configs/TelemetryConfig$PlacementTypeLoggingConfig;", "nonAb", "getNonAb", "<init>", "()V", "media_release"}, k = 1, mv = {1, 5, 1})
public static final class AdTypeLoggingConfig {
private PlacementTypeLoggingConfig f13789ab = new PlacementTypeLoggingConfig();
private PlacementTypeLoggingConfig nonAb = new PlacementTypeLoggingConfig();
public final PlacementTypeLoggingConfig getAb() {
return this.f13789ab;
}
public final PlacementTypeLoggingConfig getNonAb() {
return this.nonAb;
}
}
@Keep
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000b\n\u0002\b\u0012\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0012\u0010\u0013J\u0006\u0010\u0003\u001a\u00020\u0002J\u0006\u0010\u0004\u001a\u00020\u0002J\u0006\u0010\u0005\u001a\u00020\u0002R\"\u0010\u0006\u001a\u00020\u00028\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0006\u0010\u0007\u001a\u0004\b\b\u0010\t\"\u0004\b\n\u0010\u000bR\"\u0010\f\u001a\u00020\u00028\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\f\u0010\u0007\u001a\u0004\b\r\u0010\t\"\u0004\b\u000e\u0010\u000bR\"\u0010\u000f\u001a\u00020\u00028\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u000f\u0010\u0007\u001a\u0004\b\u0010\u0010\t\"\u0004\b\u0011\u0010\u000b¨\u0006\u0014"}, d2 = {"Lcom/inmobi/commons/core/configs/TelemetryConfig$AssetReportingConfig;", "", "", "isGifEnabled", "isImageEnabled", "isVideoEnabled", "video", "Z", "getVideo", "()Z", "setVideo", "(Z)V", "image", "getImage", "setImage", "gif", "getGif", "setGif", "<init>", "()V", "media_release"}, k = 1, mv = {1, 5, 1})
public static final class AssetReportingConfig {
private boolean gif;
private boolean image;
private boolean video;
public final boolean getGif() {
return this.gif;
}
public final boolean getImage() {
return this.image;
}
public final boolean getVideo() {
return this.video;
}
public final boolean isGifEnabled() {
return this.gif;
}
public final boolean isImageEnabled() {
return this.image;
}
public final boolean isVideoEnabled() {
return this.video;
}
public final void setGif(boolean z10) {
this.gif = z10;
}
public final void setImage(boolean z10) {
this.image = z10;
}
public final void setVideo(boolean z10) {
this.video = z10;
}
}
@Keep
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000b\n\u0002\b\u0006\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0006\u0010\u0007J\u0006\u0010\u0003\u001a\u00020\u0002R\u0016\u0010\u0004\u001a\u00020\u00028\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0004\u0010\u0005¨\u0006\b"}, d2 = {"Lcom/inmobi/commons/core/configs/TelemetryConfig$Base;", "", "", "getEnabled", c.ENABLED, "Z", "<init>", "()V", "media_release"}, k = 1, mv = {1, 5, 1})
public static final class Base {
private boolean enabled = true;
public final boolean getEnabled() {
return this.enabled;
}
}
@Keep
@Metadata(bv = {1, 0, 3}, d1 = {"\u00008\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000b\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0010\t\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\f\n\u0002\u0018\u0002\n\u0002\b\u0007\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b-\u0010.R$\u0010\u0004\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\u0004\u0010\u0005\u001a\u0004\b\u0006\u0010\u0007R$\u0010\t\u001a\u00020\b2\u0006\u0010\u0003\u001a\u00020\b8\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\t\u0010\n\u001a\u0004\b\u000b\u0010\fR$\u0010\u000e\u001a\u00020\r2\u0006\u0010\u0003\u001a\u00020\r8\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\u000e\u0010\u000f\u001a\u0004\b\u0010\u0010\u0011R$\u0010\u0013\u001a\u00020\u00122\u0006\u0010\u0003\u001a\u00020\u00128\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\u0013\u0010\u0014\u001a\u0004\b\u0015\u0010\u0016R$\u0010\u0017\u001a\u00020\r2\u0006\u0010\u0003\u001a\u00020\r8\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\u0017\u0010\u000f\u001a\u0004\b\u0018\u0010\u0011R$\u0010\u0019\u001a\u00020\u00122\u0006\u0010\u0003\u001a\u00020\u00128\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\u0019\u0010\u0014\u001a\u0004\b\u001a\u0010\u0016R$\u0010\u001c\u001a\u00020\u001b2\u0006\u0010\u0003\u001a\u00020\u001b8\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\u001c\u0010\u001d\u001a\u0004\b\u001e\u0010\u001fR$\u0010 \u001a\u00020\u001b2\u0006\u0010\u0003\u001a\u00020\u001b8\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b \u0010\u001d\u001a\u0004\b!\u0010\u001fR$\u0010\"\u001a\u00020\u001b2\u0006\u0010\u0003\u001a\u00020\u001b8\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\"\u0010\u001d\u001a\u0004\b#\u0010\u001fR$\u0010$\u001a\u00020\u001b2\u0006\u0010\u0003\u001a\u00020\u001b8\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b$\u0010\u001d\u001a\u0004\b%\u0010\u001fR$\u0010&\u001a\u00020\u001b2\u0006\u0010\u0003\u001a\u00020\u001b8\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b&\u0010\u001d\u001a\u0004\b'\u0010\u001fR$\u0010)\u001a\u00020(2\u0006\u0010\u0003\u001a\u00020(8\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b)\u0010*\u001a\u0004\b+\u0010,¨\u0006/"}, d2 = {"Lcom/inmobi/commons/core/configs/TelemetryConfig$LoggingConfig;", "", "", "<set-?>", c.ENABLED, "Z", "getEnabled", "()Z", "", "loggingUrl", "Ljava/lang/String;", "getLoggingUrl", "()Ljava/lang/String;", "", "maxNoOfEntries", "I", "getMaxNoOfEntries", "()I", "", "expiry", "J", "getExpiry", "()J", "maxRetries", "getMaxRetries", "retryInterval", "getRetryInterval", "Lcom/inmobi/commons/core/configs/TelemetryConfig$AdTypeLoggingConfig;", "banner", "Lcom/inmobi/commons/core/configs/TelemetryConfig$AdTypeLoggingConfig;", "getBanner", "()Lcom/inmobi/commons/core/configs/TelemetryConfig$AdTypeLoggingConfig;", "audio", "getAudio", "int_html", "getInt_html", "int_native", "getInt_native", "native", "getNative", "Lcom/inmobi/commons/core/configs/TelemetryConfig$PlacementTypeLoggingConfig;", "getToken", "Lcom/inmobi/commons/core/configs/TelemetryConfig$PlacementTypeLoggingConfig;", "getGetToken", "()Lcom/inmobi/commons/core/configs/TelemetryConfig$PlacementTypeLoggingConfig;", "<init>", "()V", "media_release"}, k = 1, mv = {1, 5, 1})
public static final class LoggingConfig {
private boolean enabled = true;
private String loggingUrl = "https://log-activity.templates.inmobi.com/api/v1/ingest";
private int maxNoOfEntries = 20;
private long expiry = 86400;
private int maxRetries = 3;
private long retryInterval = DeviceOrientationRequest.OUTPUT_PERIOD_FAST;
private AdTypeLoggingConfig banner = new AdTypeLoggingConfig();
private AdTypeLoggingConfig audio = new AdTypeLoggingConfig();
private AdTypeLoggingConfig int_html = new AdTypeLoggingConfig();
private AdTypeLoggingConfig int_native = new AdTypeLoggingConfig();
private AdTypeLoggingConfig f15native = new AdTypeLoggingConfig();
private PlacementTypeLoggingConfig getToken = new PlacementTypeLoggingConfig();
public final AdTypeLoggingConfig getAudio() {
return this.audio;
}
public final AdTypeLoggingConfig getBanner() {
return this.banner;
}
public final boolean getEnabled() {
return this.enabled;
}
public final long getExpiry() {
return this.expiry;
}
public final PlacementTypeLoggingConfig getGetToken() {
return this.getToken;
}
public final AdTypeLoggingConfig getInt_html() {
return this.int_html;
}
public final AdTypeLoggingConfig getInt_native() {
return this.int_native;
}
public final String getLoggingUrl() {
return this.loggingUrl;
}
public final int getMaxNoOfEntries() {
return this.maxNoOfEntries;
}
public final int getMaxRetries() {
return this.maxRetries;
}
public final AdTypeLoggingConfig getNative() {
return this.f15native;
}
public final long getRetryInterval() {
return this.retryInterval;
}
}
@Keep
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u0006\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0002\b\u0007\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\r\u0010\u000eR$\u0010\u0004\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\u0004\u0010\u0005\u001a\u0004\b\u0006\u0010\u0007R$\u0010\t\u001a\u00020\b2\u0006\u0010\u0003\u001a\u00020\b8\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\t\u0010\n\u001a\u0004\b\u000b\u0010\f¨\u0006\u000f"}, d2 = {"Lcom/inmobi/commons/core/configs/TelemetryConfig$PlacementTypeLoggingConfig;", "", "", "<set-?>", "samplePercent", "D", "getSamplePercent", "()D", "", "logLevel", "Ljava/lang/String;", "getLogLevel", "()Ljava/lang/String;", "<init>", "()V", "media_release"}, k = 1, mv = {1, 5, 1})
public static final class PlacementTypeLoggingConfig {
private double samplePercent = 0.1d;
private String logLevel = "INFO";
public final String getLogLevel() {
return this.logLevel;
}
public final double getSamplePercent() {
return this.samplePercent;
}
}
public static final class a {
public static final class C0294a implements Constructor<List<? extends String>> {
@Override
public List<? extends String> construct() {
return new ArrayList();
}
}
public static final List a(a aVar) {
aVar.getClass();
return u.i("SessionStarted", "ServerFill", "ServerNoFill", "ServerError", "AdLoadFailed", "AdLoadSuccessful", "BlockAutoRedirection", "AssetDownloaded", "CrashEventOccurred", "InvalidConfig", "ConfigFetched", "SdkInitialized", "AdGetSignalsFailed", "AdGetSignalsSucceeded", "AdShowFailed", "AdLoadCalled", "AdLoadDroppedAtSDK", "AdShowCalled", "AdShowSuccessful", "AdImpressionSuccessful");
}
public final com.inmobi.commons.utils.json.a<TelemetryConfig> a() {
return new com.inmobi.commons.utils.json.a().a(new xa("priorityEvents", TelemetryConfig.class), (wa<?>) new b6(new C0294a(), String.class));
}
}
public TelemetryConfig(String str) {
super(str);
this.telemetryUrl = DEFAULT_URL;
this.TAG = "TelemetryConfig";
this.processingInterval = 30L;
this.maxRetryCount = 1;
this.maxEventsToPersist = 1000;
this.eventTTL = DEFAULT_EVENT_TTL_SEC;
this.txLatency = 86400L;
this.priorityEvents = a.a(Companion);
this.base = new Base();
this.networkType = new b9();
this.loggingConfig = new LoggingConfig();
setDefaultNetworkConfig();
this.assetReporting = getDefaultAssetReportingConfig();
}
private final AssetReportingConfig getDefaultAssetReportingConfig() {
AssetReportingConfig assetReportingConfig = new AssetReportingConfig();
assetReportingConfig.setVideo(true);
assetReportingConfig.setImage(false);
assetReportingConfig.setGif(false);
return assetReportingConfig;
}
private final void setDefaultNetworkConfig() {
b9 b9Var = this.networkType;
b9.a aVar = new b9.a();
aVar.a(60L);
aVar.c(5);
aVar.b(20);
a0 a0Var = a0.f17744a;
b9Var.getClass();
b9Var.wifi = aVar;
b9 b9Var2 = this.networkType;
b9.a aVar2 = new b9.a();
aVar2.a(60L);
aVar2.c(5);
aVar2.b(20);
b9Var2.getClass();
b9Var2.others = aVar2;
}
public final AssetReportingConfig getAssetConfig() {
return this.assetReporting;
}
public final boolean getEnabled() {
return this.base.getEnabled();
}
public final x3 getEventConfig() {
return new x3(this.maxRetryCount, this.eventTTL, this.processingInterval, this.txLatency, getWifiConfig().b(), getWifiConfig().a(), getMobileConfig().b(), getMobileConfig().a(), getWifiConfig().c(), getMobileConfig().c());
}
public final LoggingConfig getLoggingConfig() {
return this.loggingConfig;
}
public final int getMaxEventsToPersist() {
return this.maxEventsToPersist;
}
public final int getMaxRetryCount() {
return this.maxRetryCount;
}
public final b9.a getMobileConfig() {
return this.networkType.a();
}
public final List<String> getPriorityEventsList() {
return this.priorityEvents;
}
public final double getSamplingFactor() {
return this.samplingFactor;
}
public final String getTelemetryUrl() {
return this.telemetryUrl;
}
@Override
public String getType() {
return "telemetry";
}
public final String getUrl() {
return this.telemetryUrl;
}
public final b9.a getWifiConfig() {
return this.networkType.b();
}
public final boolean isGeneralEventsDisabled() {
return this.disableAllGeneralEvents;
}
public final boolean isSameAs(TelemetryConfig telemetryConfig) {
l.f(telemetryConfig, "config");
boolean z10 = (getAccountId$media_release() == null && telemetryConfig.getAccountId$media_release() == null) || (getAccountId$media_release() != null && t.i(getAccountId$media_release(), telemetryConfig.getAccountId$media_release(), false));
List<String> priorityEventsList = getPriorityEventsList();
for (String str : telemetryConfig.getPriorityEventsList()) {
if (!priorityEventsList.contains(str)) {
return false;
}
}
return z10 && l.a(telemetryConfig.telemetryUrl, this.telemetryUrl) && telemetryConfig.samplingFactor == this.samplingFactor && telemetryConfig.eventTTL == this.eventTTL && telemetryConfig.maxEventsToPersist == this.maxEventsToPersist && telemetryConfig.maxRetryCount == this.maxRetryCount && telemetryConfig.getAssetConfig().isImageEnabled() == getAssetConfig().isImageEnabled() && telemetryConfig.getAssetConfig().isGifEnabled() == getAssetConfig().isGifEnabled() && telemetryConfig.getAssetConfig().isVideoEnabled() == getAssetConfig().isVideoEnabled();
}
@Override
public boolean isValid() {
if (f4.a(this.telemetryUrl)) {
return false;
}
long j10 = this.txLatency;
if (j10 < this.processingInterval || j10 > this.eventTTL) {
return false;
}
b9 b9Var = this.networkType;
int i10 = this.maxEventsToPersist;
return b9Var.b().a(i10) && b9Var.a().a(i10) && this.processingInterval > 0 && this.maxRetryCount >= 0 && this.txLatency > 0 && this.eventTTL > 0 && this.maxEventsToPersist > 0 && this.samplingFactor >= DEFAULT_SAMPLING_FACTOR;
}
public final void setTelemetryUrl(String str) {
l.f(str, "<set-?>");
this.telemetryUrl = str;
}
@Override
public JSONObject toJson() {
JSONObject a10 = Companion.a().a((com.inmobi.commons.utils.json.a<TelemetryConfig>) this);
if (a10 == null) {
l.e(this.TAG, "TAG");
return new JSONObject();
}
return a10;
}
}