Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9
以下内容为反编译后的 TelemetryConfig.java 源代码,内容仅作参考
package com.inmobi.commons.core.configs;
import androidx.annotation.Keep;
import com.amazon.device.ads.DTBMetricsConfiguration;
import com.inmobi.commons.utils.json.Constructor;
import com.inmobi.media.a4;
import com.inmobi.media.i4;
import com.inmobi.media.p6;
import com.inmobi.media.sb;
import com.inmobi.media.t9;
import com.inmobi.media.tb;
import com.inmobi.media.x4;
import java.util.ArrayList;
import java.util.List;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.internal.Intrinsics;
import myobfuscated.jk2.o;
import myobfuscated.mn2.k;
import org.jetbrains.annotations.NotNull;
import org.json.JSONObject;
@Keep
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000h\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\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\u0002\b\u0002\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\u0011\n\u0002\u0018\u0002\n\u0002\b\u0011\b\u0007\u0018\u0000 E2\u00020\u0001:\u0006FGHIJKB\u0011\u0012\b\u0010C\u001a\u0004\u0018\u00010\t¢\u0006\u0004\bD\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\u0018\u001a\u00020\u0007J\u0006\u0010\u001a\u001a\u00020\u0019J\u0006\u0010\u001c\u001a\u00020\u001bJ\u0006\u0010\u001d\u001a\u00020\u001bJ\u0006\u0010\u001f\u001a\u00020\u001eJ\u0006\u0010 \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\u001e\u0010(\u001a\n '*\u0004\u0018\u00010\t0\t8\u0002@\u0003X\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\u001b8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b,\u0010-R\u0016\u0010.\u001a\u00020\u001b8\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$\u00101\u001a\u00020\u001b2\u0006\u00100\u001a\u00020\u001b8\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b1\u0010-\u001a\u0004\b2\u00103R\u0016\u00104\u001a\u00020\u00078\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b4\u00105R\u0016\u00106\u001a\u00020)8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b6\u0010+R\u0016\u00107\u001a\u00020\u00168\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b7\u00108R\u001c\u00109\u001a\b\u0012\u0004\u0012\u00020\t0\u00128\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b9\u0010:R\u0016\u0010<\u001a\u00020;8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b<\u0010=R\u0016\u0010>\u001a\u00020\u00048\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b>\u0010?R\u0016\u0010@\u001a\u00020\u00198\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b@\u0010AR\u0016\u0010B\u001a\u00020\u00078\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bB\u00105¨\u0006L"}, d2 = {"Lcom/inmobi/commons/core/configs/TelemetryConfig;", "Lcom/inmobi/commons/core/configs/Config;", "", "setDefaultNetworkConfig", "Lcom/inmobi/commons/core/configs/TelemetryConfig$AssetReportingConfig;", "getDefaultAssetReportingConfig", DTBMetricsConfiguration.CONFIG_DIR, "", "isSameAs", "", "getType", "isValid", "Lorg/json/JSONObject;", "toJson", "Lcom/inmobi/media/t9$a;", "getMobileConfig", "getWifiConfig", "isGeneralEventsDisabled", "", "getPriorityEventsList", "getEnabled", "getUrl", "", "getSamplingFactor", "shouldSendCrashEvents", "Lcom/inmobi/commons/core/configs/TelemetryConfig$LoggingConfig;", "getLoggingConfig", "", "getMaxRetryCount", "getMaxEventsToPersist", "Lcom/inmobi/media/a4;", "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", "<set-?>", "maxTemplateEvents", "getMaxTemplateEvents", "()I", "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;", "sendCrashEvents", "accountId", "<init>", "Companion", "AdTypeLoggingConfig", "AssetReportingConfig", "Base", com.inmobi.commons.core.configs.a.d, "LoggingConfig", "PlacementTypeLoggingConfig", "media_release"}, k = 1, mv = {1, 5, 1})
public final class TelemetryConfig extends Config {
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 boolean DEFAULT_LOG_ENABLED = false;
public static final long DEFAULT_LOG_EXPIRY = 86400;
public static final int DEFAULT_LOG_MAX_RETRIES = 3;
public static final long DEFAULT_LOG_RETRY_INTERVAL = 5000;
public static final double DEFAULT_LOG_SAMPLING_FACTOR = 0.0d;
@NotNull
public static final String DEFAULT_LOG_URL = "https://log-activity.templates.inmobi.com/api/v1/ingest";
public static final int DEFAULT_MAX_BATCH_SIZE = 20;
public static final int DEFAULT_MAX_ENTRIES = 20;
public static final int DEFAULT_MAX_EVENTS_TO_PERSIST = 1000;
public static final int DEFAULT_MAX_RETRIES = 1;
public static final int DEFAULT_MAX_TEMPLATE_EVENTS = 50;
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;
@NotNull
public static final String DEFAULT_URL = "https://telemetry.sdk.inmobi.com/metrics";
@x4
private final String TAG;
@NotNull
private AssetReportingConfig assetReporting;
@NotNull
private Base base;
private boolean disableAllGeneralEvents;
private long eventTTL;
@NotNull
private LoggingConfig loggingConfig;
private int maxEventsToPersist;
private int maxRetryCount;
private int maxTemplateEvents;
@NotNull
private t9 networkType;
@NotNull
private List<String> priorityEvents;
private long processingInterval;
private double samplingFactor;
private boolean sendCrashEvents;
@NotNull
private String telemetryUrl;
private long txLatency;
@NotNull
public static final a Companion = new a();
@NotNull
private static final String DEFAULT_LOG_LEVEL = "ERROR";
@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 {
@NotNull
private PlacementTypeLoggingConfig ab = new PlacementTypeLoggingConfig();
@NotNull
private PlacementTypeLoggingConfig nonAb = new PlacementTypeLoggingConfig();
@NotNull
public final PlacementTypeLoggingConfig getAb() {
return this.ab;
}
@NotNull
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 z) {
this.gif = z;
}
public final void setImage(boolean z) {
this.image = z;
}
public final void setVideo(boolean z) {
this.video = z;
}
}
@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", "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-?>", "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;
@NotNull
private String loggingUrl = TelemetryConfig.DEFAULT_LOG_URL;
private int maxNoOfEntries = 20;
private long expiry = 86400;
private int maxRetries = 3;
private long retryInterval = TelemetryConfig.DEFAULT_LOG_RETRY_INTERVAL;
@NotNull
private AdTypeLoggingConfig banner = new AdTypeLoggingConfig();
@NotNull
private AdTypeLoggingConfig audio = new AdTypeLoggingConfig();
@NotNull
private AdTypeLoggingConfig int_html = new AdTypeLoggingConfig();
@NotNull
private AdTypeLoggingConfig int_native = new AdTypeLoggingConfig();
@NotNull
private AdTypeLoggingConfig f19native = new AdTypeLoggingConfig();
@NotNull
private PlacementTypeLoggingConfig getToken = new PlacementTypeLoggingConfig();
@NotNull
public final AdTypeLoggingConfig getAudio() {
return this.audio;
}
@NotNull
public final AdTypeLoggingConfig getBanner() {
return this.banner;
}
public final boolean getEnabled() {
return this.enabled;
}
public final long getExpiry() {
return this.expiry;
}
@NotNull
public final PlacementTypeLoggingConfig getGetToken() {
return this.getToken;
}
@NotNull
public final AdTypeLoggingConfig getInt_html() {
return this.int_html;
}
@NotNull
public final AdTypeLoggingConfig getInt_native() {
return this.int_native;
}
@NotNull
public final String getLoggingUrl() {
return this.loggingUrl;
}
public final int getMaxNoOfEntries() {
return this.maxNoOfEntries;
}
public final int getMaxRetries() {
return this.maxRetries;
}
@NotNull
public final AdTypeLoggingConfig getNative() {
return this.f19native;
}
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 {
@NotNull
private String logLevel = TelemetryConfig.Companion.b();
private double samplePercent;
@NotNull
public final String getLogLevel() {
return this.logLevel;
}
public final double getSamplePercent() {
return this.samplePercent;
}
}
public static final class a {
public static final class C0370a implements Constructor<List<? extends String>> {
@Override
public List<? extends String> construct() {
return new ArrayList();
}
}
public static final List a(a aVar) {
aVar.getClass();
return o.j("SessionStarted", "ServerFill", "ServerNoFill", "ServerError", "AdLoadFailed", "AdLoadSuccessful", "BlockAutoRedirection", "AssetDownloaded", "CrashEventOccurred", "InvalidConfig", "ConfigFetched", "SdkInitialized", "AdGetSignalsFailed", "AdGetSignalsSucceeded", "AdShowFailed", "AdLoadCalled", "AdLoadDroppedAtSDK", "AdShowCalled", "AdShowSuccessful", "AdImpressionSuccessful", "ParseSuccess", "WebViewLoadCalled", "PageStarted", "WebViewLoadFinished", "FireAdReady", "FireAdFailed");
}
@NotNull
public final com.inmobi.commons.utils.json.a<TelemetryConfig> a() {
return new com.inmobi.commons.utils.json.a().a(new tb("priorityEvents", TelemetryConfig.class), (sb<?>) new p6(new C0370a(), String.class));
}
@NotNull
public final String b() {
return TelemetryConfig.DEFAULT_LOG_LEVEL;
}
}
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.maxTemplateEvents = 50;
this.txLatency = 86400L;
this.priorityEvents = a.a(Companion);
this.base = new Base();
this.networkType = new t9();
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() {
t9 t9Var = this.networkType;
t9.a aVar = new t9.a();
aVar.a(60L);
aVar.c(5);
aVar.b(20);
Unit unit = Unit.a;
t9Var.getClass();
Intrinsics.checkNotNullParameter(aVar, "<set-?>");
t9Var.wifi = aVar;
t9 t9Var2 = this.networkType;
t9.a aVar2 = new t9.a();
aVar2.a(60L);
aVar2.c(5);
aVar2.b(20);
t9Var2.getClass();
Intrinsics.checkNotNullParameter(aVar2, "<set-?>");
t9Var2.others = aVar2;
}
@NotNull
public final AssetReportingConfig getAssetConfig() {
return this.assetReporting;
}
public final boolean getEnabled() {
return this.base.getEnabled();
}
@NotNull
public final a4 getEventConfig() {
return new a4(this.maxRetryCount, this.eventTTL, this.processingInterval, this.txLatency, getWifiConfig().b(), getWifiConfig().a(), getMobileConfig().b(), getMobileConfig().a(), getWifiConfig().c(), getMobileConfig().c());
}
@NotNull
public final LoggingConfig getLoggingConfig() {
return this.loggingConfig;
}
public final int getMaxEventsToPersist() {
return this.maxEventsToPersist;
}
public final int getMaxRetryCount() {
return this.maxRetryCount;
}
public final int getMaxTemplateEvents() {
return this.maxTemplateEvents;
}
@NotNull
public final t9.a getMobileConfig() {
return this.networkType.a();
}
@NotNull
public final List<String> getPriorityEventsList() {
return this.priorityEvents;
}
public final double getSamplingFactor() {
return this.samplingFactor;
}
@NotNull
public final String getTelemetryUrl() {
return this.telemetryUrl;
}
@Override
@NotNull
public String getType() {
return "telemetry";
}
@NotNull
public final String getUrl() {
return this.telemetryUrl;
}
@NotNull
public final t9.a getWifiConfig() {
return this.networkType.b();
}
public final boolean isGeneralEventsDisabled() {
return this.disableAllGeneralEvents;
}
public final boolean isSameAs(@NotNull TelemetryConfig config) {
Intrinsics.checkNotNullParameter(config, "config");
boolean z = (getAccountId$media_release() == null && config.getAccountId$media_release() == null) || (getAccountId$media_release() != null && k.n(getAccountId$media_release(), config.getAccountId$media_release(), false));
List<String> priorityEventsList = getPriorityEventsList();
for (String str : config.getPriorityEventsList()) {
if (!priorityEventsList.contains(str)) {
return false;
}
}
return z && Intrinsics.c(config.telemetryUrl, this.telemetryUrl) && config.samplingFactor == this.samplingFactor && config.eventTTL == this.eventTTL && config.maxEventsToPersist == this.maxEventsToPersist && config.maxRetryCount == this.maxRetryCount && config.getAssetConfig().isImageEnabled() == getAssetConfig().isImageEnabled() && config.getAssetConfig().isGifEnabled() == getAssetConfig().isGifEnabled() && config.getAssetConfig().isVideoEnabled() == getAssetConfig().isVideoEnabled();
}
@Override
public boolean isValid() {
if (i4.a(this.telemetryUrl)) {
return false;
}
long j = this.txLatency;
if (j < this.processingInterval || j > this.eventTTL) {
return false;
}
t9 t9Var = this.networkType;
int i = this.maxEventsToPersist;
return t9Var.b().a(i) && t9Var.a().a(i) && this.processingInterval > 0 && this.maxRetryCount >= 0 && this.txLatency > 0 && this.eventTTL > 0 && this.maxEventsToPersist > 0 && this.samplingFactor >= 0.0d;
}
public final void setTelemetryUrl(@NotNull String str) {
Intrinsics.checkNotNullParameter(str, "<set-?>");
this.telemetryUrl = str;
}
public final boolean shouldSendCrashEvents() {
return this.sendCrashEvents;
}
@Override
@NotNull
public JSONObject toJson() {
JSONObject a2 = Companion.a().a((com.inmobi.commons.utils.json.a<TelemetryConfig>) this);
if (a2 == null) {
String TAG = this.TAG;
Intrinsics.checkNotNullExpressionValue(TAG, "TAG");
return new JSONObject();
}
return a2;
}
}