package com.ss.android.ugc.aweme.bullet.business;

import X.C1897Kk4;
import X.C2140Knz;
import X.C2164KoN;
import X.C2276KqB;
import X.M12;
import X.TSt;
import com.bytedance.covode.number.Covode;
import org.json.JSONException;
import org.json.JSONObject;

public final class PlayableBusiness extends BulletBusinessService$Business {
    public boolean LIZ;

    static {
        Covode.recordClassIndex(55180);
    }

    public final void LIZ() {
        LIZ(false, true);
    }

    public final void LIZIZ() {
        if (!this.LIZ) {
            LIZ(false, true);
        }
    }

    public final void LIZJ() {
        if (!this.LIZ) {
            LIZ(true, false);
        }
    }

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

    public final void LIZ(boolean z, boolean z2) {
        Integer num;
        C1897Kk4 kk4 = this.LJIIJ.LIZ;
        if ((kk4 instanceof C2276KqB) && (num = (Integer) ((C2276KqB) kk4).LJJJJZI.LIZIZ()) != null && num.intValue() == 1) {
            JSONObject jSONObject = new JSONObject();
            try {
                jSONObject.put(C2164KoN.LIZIZ, z);
                jSONObject.put(C2164KoN.LIZJ, z2);
                this.LJIIJ.LIZ(C2164KoN.LIZ, jSONObject);
            } catch (JSONException e) {
                TSt.LIZ(e);
            }
        }
    }
}
