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

import com.bytedance.sdk.openadsdk.AdSlot;
import java.util.ArrayList;
import java.util.Collection;
import org.json.JSONArray;
import org.json.JSONObject;

/* JADX INFO: loaded from: classes2.dex */
public class lb {
    public String ajl;
    public String fm;
    public AdSlot jnr;

    /* JADX INFO: renamed from: lb, reason: collision with root package name */
    public int f7183lb = 1;
    public int ro;
    public int wsy;
    public ArrayList<Integer> yz;

    public String fm() {
        return this.fm;
    }

    public ArrayList<Integer> jnr() {
        return this.yz;
    }

    public int lb() {
        return this.f7183lb;
    }

    public int ro() {
        return this.ro;
    }

    public AdSlot yz() {
        return this.jnr;
    }

    public void fm(int i10) {
        this.ro = i10;
    }

    public void lb(int i10) {
        this.wsy = i10;
    }

    public void ro(int i10) {
        this.f7183lb = i10;
    }

    public void fm(AdSlot adSlot) {
        this.jnr = adSlot;
    }

    public void ro(String str) {
        this.ajl = str;
    }

    public void fm(String str) {
        this.fm = str;
    }

    public void fm(ArrayList<Integer> arrayList) {
        this.yz = arrayList;
    }

    public static void fm(lb lbVar) {
        int iRo;
        if (lbVar == null || lbVar.yz() == null || (iRo = lbVar.ro()) >= 0 || iRo == -8) {
            return;
        }
        com.bytedance.sdk.openadsdk.irt.yz.fm("rd_client_custom_error", false, new com.bytedance.sdk.openadsdk.irt.ro() { // from class: com.bytedance.sdk.openadsdk.core.model.lb.1
            @Override // com.bytedance.sdk.openadsdk.irt.ro
            public com.bytedance.sdk.openadsdk.irt.fm.lb fm() throws Exception {
                JSONObject jSONObject = new JSONObject();
                jSONObject.put("from", lb.this.lb());
                jSONObject.put("err_code", lb.this.ro());
                jSONObject.put("err_msg", lb.this.ajl);
                jSONObject.put("ext_from", lb.this.wsy);
                jSONObject.put("server_res_str", lb.this.fm());
                if (lb.this.jnr() != null && lb.this.jnr().size() > 0) {
                    jSONObject.put("mate_unavailable_code_list", new JSONArray((Collection) lb.this.jnr()).toString());
                }
                return com.bytedance.sdk.openadsdk.irt.fm.yz.ro().fm("rd_client_custom_error").fm(lb.this.yz().getDurationSlotType()).ro(jSONObject.toString());
            }
        });
    }
}
