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

import com.google.firebase.analytics.FirebaseAnalytics;
import com.mbridge.msdk.foundation.download.database.DownloadModel;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public class tN {
    private int DSW;
    private String YFl = "";
    private String Sg = "";
    private String tN = "";
    private String AlY = "";
    private double wN = -1.0d;
    private int vc = -1;

    public double AlY() {
        return this.wN;
    }

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

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

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

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

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

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

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

    public void YFl(int i) {
        if (i <= 0) {
            this.vc = -1;
        } else {
            this.vc = i;
        }
    }

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

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

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

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

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

    public JSONObject qsH() {
        JSONObject jSONObject = new JSONObject();
        try {
            jSONObject.put("app_name", Sg());
            jSONObject.put(CampaignEx.JSON_KEY_APP_SIZE, vc());
            jSONObject.put("comment_num", wN());
            jSONObject.put(DownloadModel.DOWNLOAD_URL, YFl());
            jSONObject.put("package_name", tN());
            jSONObject.put(FirebaseAnalytics.Param.SCORE, AlY());
            jSONObject.put("app_category", DSW());
        } catch (Exception e) {
            com.bytedance.sdk.component.utils.YoT.Sg(e.toString());
        }
        return jSONObject;
    }
}
