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

import org.json.JSONObject;

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

    /* JADX INFO: renamed from: lb, reason: collision with root package name */
    private String f7157lb = "";
    private String yz = "";
    private double jnr = -1.0d;
    private int ajl = -1;

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

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

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

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

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

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

    public JSONObject wu() {
        JSONObject jSONObject = new JSONObject();
        try {
            jSONObject.put("app_name", ro());
            jSONObject.put("app_size", ajl());
            jSONObject.put("comment_num", jnr());
            jSONObject.put("download_url", fm());
            jSONObject.put("package_name", lb());
            jSONObject.put("score", yz());
            jSONObject.put("app_category", wsy());
        } catch (Exception e10) {
            com.bytedance.sdk.component.utils.wey.lb(e10.toString(), new Object[0]);
        }
        return jSONObject;
    }

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

    public void fm(double d10) {
        if (d10 < 1.0d || d10 > 5.0d) {
            this.jnr = -1.0d;
        } else {
            this.jnr = d10;
        }
    }

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

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

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

    public void fm(int i10) {
        if (i10 <= 0) {
            this.ajl = -1;
        } else {
            this.ajl = i10;
        }
    }

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

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