package p138.p176.p291.p296.p297.p310;

import org.json.JSONException;
import org.json.JSONObject;
import p138.p176.p291.p296.p297.p299.C5692;
import p138.p176.p291.p296.p297.p310.p311.C5864;
import p138.p176.p291.p296.p297.p310.p311.C5865;
import p138.p176.p291.p296.p297.p310.p311.C5866;
import p138.p176.p291.p296.p297.p310.p311.C5868;

/* JADX INFO: renamed from: ދ.ހ.ށ.ބ.ށ.ޏ.ؠ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C5855 implements InterfaceC5861 {
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static long m9201(C5692 c5692, long j, JSONObject jSONObject) {
        if (jSONObject.has("expires_at")) {
            return jSONObject.optLong("expires_at");
        }
        if (c5692 == null) {
            throw null;
        }
        return (j * 1000) + System.currentTimeMillis();
    }

    @Override // p138.p176.p291.p296.p297.p310.InterfaceC5861
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public C5868 mo9202(C5692 c5692, JSONObject jSONObject) throws JSONException {
        int iOptInt = jSONObject.optInt("settings_version", 0);
        int iOptInt2 = jSONObject.optInt("cache_duration", 3600);
        JSONObject jSONObject2 = jSONObject.getJSONObject("app");
        return new C5868(m9201(c5692, iOptInt2, jSONObject), new C5864(jSONObject2.getString("status"), jSONObject2.getString("url"), jSONObject2.getString("reports_url"), jSONObject2.getString("ndk_reports_url"), jSONObject2.optBoolean("update_required", false)), new C5866(jSONObject.getJSONObject("session").optInt("max_custom_exception_events", 8), 4), new C5865(jSONObject.getJSONObject("features").optBoolean("collect_reports", true)), iOptInt, iOptInt2);
    }
}
