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

import org.json.JSONObject;

/* JADX INFO: loaded from: classes2.dex */
public class nt {
    private int fm;

    /* JADX INFO: renamed from: lb, reason: collision with root package name */
    private int f7211lb;
    private int ro;
    private String yz = "Next Ad";

    public int fm() {
        return this.f7211lb;
    }

    public String lb() {
        return this.yz;
    }

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

    public int yz() {
        return this.fm;
    }

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

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

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

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

    public static nt fm(JSONObject jSONObject) {
        if (jSONObject == null) {
            return null;
        }
        nt ntVar = new nt();
        try {
            int iMax = Math.max(jSONObject.optInt("endcard_show_time", 0), 0);
            int iOptInt = jSONObject.optInt("is_allow_pause", 0);
            int iOptInt2 = jSONObject.optInt("landing_type", 0);
            String strOptString = jSONObject.optString("endcard_next_ad_text", "Next Ad");
            ntVar.lb(iMax);
            ntVar.ro(iOptInt);
            ntVar.fm(strOptString);
            ntVar.fm(iOptInt2);
        } catch (Throwable unused) {
        }
        return ntVar;
    }
}
