导航菜单

页面标题

页面副标题

Mint v5.7.3 - p.java 源代码

正在查看: Mint v5.7.3 应用的 p.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package e8;

import android.content.Context;
import android.text.TextUtils;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;
import com.google.gson.Gson;
import com.htmedia.mint.AppController;
import com.htmedia.mint.pojo.companydetailnew.Technical;
import com.htmedia.mint.pojo.companydetailnew.TechnicalPojo;
import com.htmedia.mint.utils.f0;
import com.htmedia.mint.utils.o1;
import org.json.JSONObject;
import x4.yq0;

public class p implements k6.q {
    private final String a = "Technical";
    private final LinearLayout b;
    private final AppCompatActivity c;
    private k6.p d;
    private final Context e;
    private String f;
    private String g;
    private yq0 h;
    TechnicalPojo i;
    boolean j;

    public p(LinearLayout linearLayout, AppCompatActivity appCompatActivity, Context context, String str, String str2) {
        this.b = linearLayout;
        this.c = appCompatActivity;
        this.e = context;
        this.f = str;
        this.g = str2;
    }

    private void b(TechnicalPojo technicalPojo) {
        for (Technical technical : technicalPojo.getResult()) {
            if (technical != null) {
                o1.a("Techincal", technical.getDays() + " " + technical.getBsePrice());
                int days = technical.getDays();
                if (days != 5) {
                    if (days != 10) {
                        if (days != 20) {
                            if (days != 50) {
                                if (days != 100) {
                                    if (days == 300) {
                                        if (this.j) {
                                            if (!TextUtils.isEmpty(technical.getNsePrice())) {
                                                if (Double.parseDouble(technical.getNsePrice()) == -99999.99d) {
                                                    this.h.h.setText("-");
                                                } else {
                                                    this.h.h.setText(f0.H0(String.valueOf(technical.getNsePrice())));
                                                }
                                            }
                                        } else if (!TextUtils.isEmpty(technical.getBsePrice())) {
                                            if (Double.parseDouble(technical.getBsePrice()) == -99999.99d) {
                                                this.h.h.setText("-");
                                            } else {
                                                this.h.h.setText(f0.H0(String.valueOf(technical.getBsePrice())));
                                            }
                                        }
                                    }
                                } else if (this.j) {
                                    if (!TextUtils.isEmpty(technical.getNsePrice())) {
                                        if (Double.parseDouble(technical.getNsePrice()) == -99999.99d) {
                                            this.h.e.setText("-");
                                        } else {
                                            this.h.e.setText(f0.H0(String.valueOf(technical.getNsePrice())));
                                        }
                                    }
                                } else if (!TextUtils.isEmpty(technical.getBsePrice())) {
                                    if (Double.parseDouble(technical.getBsePrice()) == -99999.99d) {
                                        this.h.e.setText("-");
                                    } else {
                                        this.h.e.setText(f0.H0(String.valueOf(technical.getBsePrice())));
                                    }
                                }
                            } else if (this.j) {
                                if (!TextUtils.isEmpty(technical.getNsePrice())) {
                                    if (Double.parseDouble(technical.getNsePrice()) == -99999.99d) {
                                        this.h.i.setText("-");
                                    } else {
                                        this.h.i.setText(f0.H0(String.valueOf(technical.getNsePrice())));
                                    }
                                }
                            } else if (!TextUtils.isEmpty(technical.getBsePrice())) {
                                if (Double.parseDouble(technical.getBsePrice()) == -99999.99d) {
                                    this.h.i.setText("-");
                                } else {
                                    this.h.i.setText(f0.H0(String.valueOf(technical.getBsePrice())));
                                }
                            }
                        } else if (this.j) {
                            if (!TextUtils.isEmpty(technical.getNsePrice())) {
                                if (Double.parseDouble(technical.getNsePrice()) == -99999.99d) {
                                    this.h.g.setText("-");
                                } else {
                                    this.h.g.setText(f0.H0(String.valueOf(technical.getNsePrice())));
                                }
                            }
                        } else if (!TextUtils.isEmpty(technical.getBsePrice())) {
                            if (Double.parseDouble(technical.getBsePrice()) == -99999.99d) {
                                this.h.g.setText("-");
                            } else {
                                this.h.g.setText(f0.H0(String.valueOf(technical.getBsePrice())));
                            }
                        }
                    } else if (this.j) {
                        if (!TextUtils.isEmpty(technical.getNsePrice())) {
                            if (Double.parseDouble(technical.getNsePrice()) == -99999.99d) {
                                this.h.f.setText("-");
                            } else {
                                this.h.f.setText(f0.H0(String.valueOf(technical.getNsePrice())));
                            }
                        }
                    } else if (!TextUtils.isEmpty(technical.getBsePrice())) {
                        if (Double.parseDouble(technical.getBsePrice()) == -99999.99d) {
                            this.h.f.setText("-");
                        } else {
                            this.h.f.setText(f0.H0(String.valueOf(technical.getBsePrice())));
                        }
                    }
                } else if (this.j) {
                    if (!TextUtils.isEmpty(technical.getNsePrice())) {
                        if (Double.parseDouble(technical.getNsePrice()) == -99999.99d) {
                            this.h.j.setText("-");
                        } else {
                            this.h.j.setText(f0.H0(String.valueOf(technical.getNsePrice())));
                        }
                    }
                } else if (!TextUtils.isEmpty(technical.getBsePrice())) {
                    if (Double.parseDouble(technical.getBsePrice()) == -99999.99d) {
                        this.h.j.setText("-");
                    } else {
                        this.h.j.setText(f0.H0(String.valueOf(technical.getBsePrice())));
                    }
                }
            }
        }
    }

    public void a() {
        this.b.removeAllViews();
        yq0 inflate = DataBindingUtil.inflate(this.c.getLayoutInflater(), 2131625252, (ViewGroup) null, false);
        this.h = inflate;
        inflate.o.setText(String.format(this.e.getString(2131952604), this.g));
        k6.p pVar = new k6.p(this.e, this, "Technical");
        this.d = pVar;
        pVar.q("https://api-mintgenie.livemint.com/api-gateway/fundamental/api/v2/movingAverage/" + this.f);
        this.b.addView(this.h.getRoot());
        this.j = true;
        this.h.c(Boolean.valueOf(AppController.j().E()));
    }

    @Override
    public void getAboutCompanyData(JSONObject jSONObject, String str) {
        TechnicalPojo technicalPojo = (TechnicalPojo) new Gson().fromJson(jSONObject.toString(), TechnicalPojo.class);
        this.i = technicalPojo;
        if (technicalPojo != null) {
            b(technicalPojo);
        }
    }

    @Override
    public void onError(String str, String str2) {
    }
}