Wolves Themes v1.0版本的 MD5 值为:cddc92b47f6b7c4a195c9625507eb51c

以下内容为反编译后的 q.java 源代码,内容仅作参考


package com.inmobi.signals;

import com.tapjoy.TJAdUnitConstants;
import org.json.JSONException;
import org.json.JSONObject;
public final class q extends com.inmobi.commons.core.configs.a {
    private static final String d = com.inmobi.commons.core.configs.a.class.getSimpleName();
    public b a = new b();
    a b = new a();
    JSONObject c;

    public static class a {
        boolean a = false;
        String b = "https://dock.inmobi.com/carb/v1/i";
        String c = "https://dock.inmobi.com/carb/v1/o";
        int d = 86400;
        int e = 3;
        int f = 60;
        int g = 60;
        long h = 307200;
    }

    @Override
    public final String a() {
        return "signals";
    }

    public q() {
        try {
            JSONObject jSONObject = new JSONObject();
            jSONObject.put(TJAdUnitConstants.String.ENABLED, true);
            jSONObject.put("samplingFactor", 0);
            this.c = jSONObject;
        } catch (JSONException unused) {
        }
    }

    @Override
    public final void a(JSONObject jSONObject) throws JSONException {
        super.a(jSONObject);
        JSONObject jSONObject2 = jSONObject.getJSONObject("ice");
        this.a.b = jSONObject2.getInt("sampleInterval");
        this.a.d = jSONObject2.getInt("sampleHistorySize");
        this.a.c = jSONObject2.getInt("stopRequestTimeout");
        this.a.a = jSONObject2.getBoolean(TJAdUnitConstants.String.ENABLED);
        this.a.e = jSONObject2.getString("endPoint");
        this.a.f = jSONObject2.getInt("maxRetries");
        this.a.g = jSONObject2.getInt("retryInterval");
        this.a.h = jSONObject2.getBoolean("locationEnabled");
        this.a.i = jSONObject2.getBoolean("sessionEnabled");
        JSONObject jSONObject3 = jSONObject2.getJSONObject("w");
        this.a.j = jSONObject3.getInt("wf");
        this.a.l = jSONObject3.getBoolean("cwe");
        this.a.k = jSONObject3.getBoolean("vwe");
        JSONObject jSONObject4 = jSONObject2.getJSONObject(com.mobvista.msdk.mvdownload.c.a);
        this.a.n = jSONObject4.getBoolean("oe");
        this.a.p = jSONObject4.getBoolean("cce");
        this.a.o = jSONObject4.getBoolean("vce");
        this.a.m = jSONObject4.getInt("cof");
        JSONObject jSONObject5 = jSONObject2.getJSONObject("ar");
        this.a.q = jSONObject5.getBoolean("e");
        this.a.r = jSONObject5.getInt("sampleInterval");
        this.a.s = jSONObject5.getInt("maxHistorySize");
        JSONObject jSONObject6 = jSONObject.getJSONObject("carb");
        this.b.a = jSONObject6.getBoolean(TJAdUnitConstants.String.ENABLED);
        this.b.b = jSONObject6.getString("getEndPoint");
        this.b.c = jSONObject6.getString("postEndPoint");
        this.b.d = jSONObject6.getInt("retrieveFrequency");
        this.b.e = jSONObject6.getInt("maxRetries");
        this.b.f = jSONObject6.getInt("retryInterval");
        this.b.g = jSONObject6.getInt("timeoutInterval");
        this.b.h = jSONObject6.getLong("maxGetResponseSize");
        this.c = jSONObject.optJSONObject("telemetry");
    }

    @Override
    public final JSONObject b() throws JSONException {
        JSONObject b2 = super.b();
        JSONObject jSONObject = new JSONObject();
        jSONObject.put("sampleInterval", this.a.b);
        jSONObject.put("stopRequestTimeout", this.a.c);
        jSONObject.put("sampleHistorySize", this.a.d);
        jSONObject.put(TJAdUnitConstants.String.ENABLED, this.a.a);
        jSONObject.put("endPoint", this.a.e);
        jSONObject.put("maxRetries", this.a.f);
        jSONObject.put("retryInterval", this.a.g);
        jSONObject.put("locationEnabled", this.a.h);
        jSONObject.put("sessionEnabled", this.a.i);
        JSONObject jSONObject2 = new JSONObject();
        jSONObject2.put("wf", this.a.j);
        jSONObject2.put("vwe", this.a.k);
        jSONObject2.put("cwe", this.a.l);
        jSONObject.put("w", jSONObject2);
        JSONObject jSONObject3 = new JSONObject();
        jSONObject3.put("cof", this.a.m);
        jSONObject3.put("vce", this.a.o);
        jSONObject3.put("cce", this.a.p);
        jSONObject3.put("oe", this.a.n);
        jSONObject.put(com.mobvista.msdk.mvdownload.c.a, jSONObject3);
        JSONObject jSONObject4 = new JSONObject();
        jSONObject4.put("e", this.a.q);
        jSONObject4.put("sampleInterval", this.a.r);
        jSONObject4.put("maxHistorySize", this.a.s);
        jSONObject.put("ar", jSONObject4);
        b2.put("ice", jSONObject);
        JSONObject jSONObject5 = new JSONObject();
        jSONObject5.put(TJAdUnitConstants.String.ENABLED, this.b.a);
        jSONObject5.put("getEndPoint", this.b.b);
        jSONObject5.put("postEndPoint", this.b.c);
        jSONObject5.put("retrieveFrequency", this.b.d);
        jSONObject5.put("maxRetries", this.b.e);
        jSONObject5.put("retryInterval", this.b.f);
        jSONObject5.put("timeoutInterval", this.b.g);
        jSONObject5.put("maxGetResponseSize", this.b.h);
        b2.put("carb", jSONObject5);
        b2.put("telemetry", this.c);
        return b2;
    }

    @Override
    public final boolean c() {
        return this.a.b >= 0 && this.a.d >= 0 && this.a.c >= 0 && this.a.e.trim().length() != 0 && this.a.f >= 0 && this.a.g >= 0 && this.a.j >= 0 && this.a.m >= 0 && this.a.s >= 0 && this.a.r >= 0 && this.b.b.trim().length() != 0 && this.b.c.trim().length() != 0 && (this.b.b.startsWith("http://") || this.b.b.startsWith("https://")) && ((this.b.c.startsWith("http://") || this.b.c.startsWith("https://")) && this.b.d >= 0 && this.b.e >= 0 && this.b.f >= 0 && this.b.g >= 0 && this.b.h >= 0);
    }

    @Override
    public final com.inmobi.commons.core.configs.a d() {
        return new q();
    }

    public static class b {
        public boolean a = false;
        int b = 300;
        int c = 3;
        int d = 50;
        String e = "https://sdkm.w.inmobi.com/user/e.asm";
        int f = 3;
        int g = 60;
        boolean h = false;
        boolean i = false;
        public int j = 0;
        boolean k = false;
        public boolean l = false;
        public int m = 0;
        public boolean n = false;
        public boolean o = false;
        public boolean p = false;
        boolean q = false;
        public int r = 180;
        public int s = 50;

        public final boolean a() {
            return this.h && this.a;
        }

        public final boolean b() {
            return this.i && this.a;
        }
    }
}