package com.ss.android.ugc.aweme.bullet.bridge.ad;

import X.0CB;
import X.0CH;
import X.4UQ;
import X.6Is;
import X.C1567Kek;
import X.C1599KfG;
import X.C2235KpW;
import X.C2236KpX;
import X.C3164LAt;
import X.CqM;
import X.KT7;
import X.KT8;
import X.M12;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.bullet.bridge.BaseBridgeMethod;
import org.json.JSONObject;

public final class DidSelectScoreMethod extends BaseBridgeMethod implements 6Is {
    public static final C2235KpW LIZIZ = new C2235KpW((byte) 0);
    public final String LIZJ = "didSelectScore";

    static {
        Covode.recordClassIndex(54912);
    }

    public final void onStateChanged(0CH r1, 0CB r2) {
        super.onStateChanged(r1, r2);
    }

    public final String LIZLLL() {
        return this.LIZJ;
    }

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public DidSelectScoreMethod(KT7 kt7) {
        super(kt7);
        M12.LIZ((Object) kt7);
    }

    public final void LIZ(JSONObject jSONObject, 4UQ r6) {
        C1599KfG LIZIZ2;
        C1567Kek LIZIZ3;
        M12.LIZ((Object) jSONObject, (Object) r6);
        if (jSONObject.has("score_result")) {
            int i = 0;
            if (C3164LAt.LIZIZ.LIZ().LIZIZ) {
                KT8<C1567Kek> LIZIZ4 = this.LIZ.LIZIZ(C1567Kek.class);
                if (!(LIZIZ4 == null || (LIZIZ3 = LIZIZ4.LIZIZ()) == null)) {
                    i = LIZIZ3.hashCode();
                }
            } else {
                KT8<C1599KfG> LIZIZ5 = this.LIZ.LIZIZ(C1599KfG.class);
                if (!(LIZIZ5 == null || (LIZIZ2 = LIZIZ5.LIZIZ()) == null)) {
                    i = LIZIZ2.hashCode();
                }
            }
            CqM.LIZ(new C2236KpX(i, jSONObject.optInt("score_result")));
        }
        r6.LIZ("");
    }
}
