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

import org.json.JSONObject;
import tv.danmaku.ijk.media.player.IjkEventListener;

/* JADX INFO: loaded from: classes2.dex */
public class maa {
    private String fm = "horizontal";
    private int ro = 1;

    /* JADX INFO: renamed from: lb, reason: collision with root package name */
    private int f7208lb = 1;
    private int yz = 0;
    private int jnr = 0;
    private int ajl = 0;
    private int wsy = 0;
    private int wu = 5000;

    /* JADX INFO: renamed from: ef, reason: collision with root package name */
    private int f7207ef = IjkEventListener.BUFFERING_START;
    private int vt = 0;

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

    public int ef() {
        return this.f7207ef;
    }

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

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

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

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

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

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

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

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

    public static maa fm(JSONObject jSONObject) {
        if (jSONObject == null) {
            return new maa();
        }
        maa maaVar = new maa();
        maaVar.fm = jSONObject.optString("direction", "horizontal");
        maaVar.ro = jSONObject.optInt("auto_loop", 1);
        maaVar.f7208lb = jSONObject.optInt("allow_manual_loop", 1);
        maaVar.yz = jSONObject.optInt("unlimited_loop", 0);
        maaVar.jnr = jSONObject.optInt("left_margin", 0);
        maaVar.ajl = jSONObject.optInt("right_margin", 0);
        maaVar.wsy = jSONObject.optInt("ad_margin", 0);
        maaVar.wu = jSONObject.optInt("loop_interval_time", 5000);
        maaVar.f7207ef = jSONObject.optInt("flip_speed", IjkEventListener.BUFFERING_START);
        maaVar.vt = jSONObject.optInt("stop_auto_loop", 0);
        return maaVar;
    }
}
