package com.bytedance.android.livesdk.livesetting.broadcast;

import X.2HN;
import X.LWw;
import com.bytedance.android.live.annotation.Group;
import com.bytedance.android.live.annotation.SettingsKey;
import com.bytedance.android.live_settings.SettingsManager;
import com.bytedance.android.livesdk.livesetting.model.LiveSlotSettings;
import com.bytedance.android.livesdk.livesetting.model.SlotBizTypeDisallow;
import com.bytedance.covode.number.Covode;
import java.util.Map;

@SettingsKey("live_slot_setting")
public final class LiveSlotExperiment {
    @Group(isDefault = true, value = "default group")
    public static final LiveSlotSettings DEFAULT = new LiveSlotSettings((Map) null, 1, (2HN) null);
    public static final LiveSlotExperiment INSTANCE = new LiveSlotExperiment();

    public final LiveSlotSettings getDEFAULT() {
        return DEFAULT;
    }

    public final Map<String, SlotBizTypeDisallow> getBizTypeDisallow() {
        Map<String, SlotBizTypeDisallow> bizTypeDisallow = getValue().getBizTypeDisallow();
        if (bizTypeDisallow == null) {
            return LWw.LIZ();
        }
        return bizTypeDisallow;
    }

    public final LiveSlotSettings getValue() {
        LiveSlotSettings liveSlotSettings = (LiveSlotSettings) SettingsManager.INSTANCE.getValueSafely(LiveSlotExperiment.class);
        if (liveSlotSettings == null) {
            return DEFAULT;
        }
        return liveSlotSettings;
    }

    static {
        Covode.recordClassIndex(17720);
    }
}
