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

import X.0CB;
import X.0CH;
import X.4UQ;
import X.6Is;
import X.C1599KfG;
import X.C2904L0t;
import X.C3166LAv;
import X.CqM;
import X.KT7;
import X.KT8;
import X.M12;
import android.view.View;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.bullet.bridge.BaseBridgeMethod;
import org.json.JSONObject;

public final class DynamicAdReadyMethod extends BaseBridgeMethod implements 6Is {
    public final String LIZIZ = "onDCReady";

    static {
        Covode.recordClassIndex(54917);
    }

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

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

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

    public final void LIZ(JSONObject jSONObject, 4UQ r7) {
        C1599KfG LIZIZ2;
        View LIZIZ3;
        M12.LIZ((Object) jSONObject, (Object) r7);
        long optLong = jSONObject.optLong("duration");
        int i = 0;
        if (C3166LAv.LIZIZ.LIZ().LIZIZ) {
            KT8<View> LIZIZ4 = this.LIZ.LIZIZ(View.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 C2904L0t(i, optLong));
        r7.LIZ((Object) null);
    }
}
