package com.bytedance.sdk.openadsdk.core.model;

import java.util.List;
import org.json.JSONArray;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public class wN {
    private int AlY;
    private int DSW;
    private int Sg;
    private int YFl;
    private List<Integer> tN;
    private int vc;
    private List<String> wN;

    public int AlY() {
        return this.YFl;
    }

    public void AlY(int i) {
        this.Sg = i;
    }

    public int DSW() {
        return this.AlY;
    }

    public int Sg() {
        int i = this.DSW;
        if (i >= 2) {
            return i;
        }
        return 0;
    }

    public void Sg(int i) {
        this.DSW = i;
    }

    public void Sg(List<Integer> list) {
        this.tN = list;
    }

    public void YFl(int i) {
        this.vc = i;
    }

    public void YFl(List<String> list) {
        this.wN = list;
    }

    public boolean YFl() {
        return this.vc == 1;
    }

    public List<String> tN() {
        return this.wN;
    }

    public void tN(int i) {
        this.YFl = i;
    }

    public List<Integer> vc() {
        return this.tN;
    }

    public int wN() {
        return this.Sg;
    }

    public void wN(int i) {
        this.AlY = i;
    }

    public JSONObject qsH() {
        JSONObject jSONObject = new JSONObject();
        try {
            jSONObject.put("interceptor_x", this.YFl);
            jSONObject.put("interceptor_y", this.Sg);
            if (this.tN != null) {
                JSONArray jSONArray = new JSONArray();
                for (Integer num : this.tN) {
                    jSONArray.put(num.intValue());
                }
                jSONObject.put("interceptor_page", jSONArray);
            }
            jSONObject.put("interceptor_interval_time", this.AlY);
            if (this.wN != null) {
                JSONArray jSONArray2 = new JSONArray();
                for (String str : this.wN) {
                    jSONArray2.put(str);
                }
                jSONObject.put("url_regular", jSONArray2);
            }
            jSONObject.put("is_act", this.vc);
            jSONObject.put("boc_index", this.DSW);
        } catch (Throwable th) {
            com.bytedance.sdk.component.utils.YoT.Sg(th.getMessage());
        }
        return jSONObject;
    }
}
