导航菜单

页面标题

页面副标题

Mint v5.7.3 - p.java 源代码

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

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


package k6;

import android.content.Context;
import android.util.Log;
import androidx.appcompat.app.AppCompatActivity;
import com.htmedia.mint.pojo.ShareHoldingTrendData;
import com.htmedia.mint.pojo.companies.financials.mintgeine.FinancialsMintGeinePojo;
import com.htmedia.mint.pojo.companies.financials.mintgeine.Root;
import com.htmedia.mint.pojo.companydetailnew.AboutCompanyPojo;
import com.htmedia.mint.pojo.companydetailnew.KeyMetricsPojo;
import com.htmedia.mint.pojo.companydetailnew.MarketVolumePojo;
import com.htmedia.mint.pojo.companydetailnew.PriceRangePojo;
import com.htmedia.mint.pojo.companydetailnew.RecosPojo;
import com.htmedia.mint.utils.w2;
import com.htmedia.sso.network.ApiClient;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.json.JSONObject;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
import s8.c;

public class p implements c.s {
    public static String r;
    String a;
    private final q b;
    private final s8.c c;
    private String d;
    private String e;
    private String f;
    private String g;
    public static KeyMetricsPojo[] h = {null};
    public static RecosPojo[] i = {null};
    public static AboutCompanyPojo[] j = {null};
    public static FinancialsMintGeinePojo[] o = {null};
    public static PriceRangePojo[] p = {null};
    public static MarketVolumePojo[] q = {null};
    public static List<ShareHoldingTrendData>[] s = {null};

    class a implements Callback<PriceRangePojo> {
        a() {
        }

        public void onFailure(Call<PriceRangePojo> call, Throwable th) {
        }

        public void onResponse(Call<PriceRangePojo> call, Response<PriceRangePojo> response) {
            if (response.isSuccessful()) {
                p.p[0] = (PriceRangePojo) response.body();
                p.this.b();
            }
        }
    }

    class b implements Callback<List<ShareHoldingTrendData>> {
        b() {
        }

        public void onFailure(Call<List<ShareHoldingTrendData>> call, Throwable th) {
            Log.i("ASB", call.toString());
        }

        public void onResponse(Call<List<ShareHoldingTrendData>> call, Response<List<ShareHoldingTrendData>> response) {
            if (!response.isSuccessful() || response.body() == null) {
                return;
            }
            p.s[0] = (List) response.body();
            p.this.b();
        }
    }

    class c implements Callback<KeyMetricsPojo> {
        c() {
        }

        public void onFailure(Call<KeyMetricsPojo> call, Throwable th) {
        }

        public void onResponse(Call<KeyMetricsPojo> call, Response<KeyMetricsPojo> response) {
            if (response.isSuccessful()) {
                p.h[0] = (KeyMetricsPojo) response.body();
                p.this.b();
            }
        }
    }

    class d implements Callback<RecosPojo> {
        d() {
        }

        public void onFailure(Call<RecosPojo> call, Throwable th) {
        }

        public void onResponse(Call<RecosPojo> call, Response<RecosPojo> response) {
            if (response.isSuccessful()) {
                p.i[0] = (RecosPojo) response.body();
                p.this.b();
            }
        }
    }

    class e implements Callback<AboutCompanyPojo> {
        e() {
        }

        public void onFailure(Call<AboutCompanyPojo> call, Throwable th) {
        }

        public void onResponse(Call<AboutCompanyPojo> call, Response<AboutCompanyPojo> response) {
            if (response.isSuccessful()) {
                p.j[0] = (AboutCompanyPojo) response.body();
                p.this.b();
            }
        }
    }

    class f implements Callback<ArrayList<Root>> {
        f() {
        }

        public void onFailure(Call<ArrayList<Root>> call, Throwable th) {
            Log.i("SummaryFailed:", th.toString());
        }

        public void onResponse(Call<ArrayList<Root>> call, Response<ArrayList<Root>> response) {
            if (response.body() == null || !response.isSuccessful()) {
                Log.i("SummaryFailed:", "Failed to get Financial Data");
                return;
            }
            p.o[0] = new FinancialsMintGeinePojo();
            p.o[0].setRoot((ArrayList) response.body());
            p.this.b();
        }
    }

    public p(Context context, q qVar, String str) {
        this.b = qVar;
        this.a = str;
        this.c = new s8.c(context, this);
    }

    private boolean a(KeyMetricsPojo keyMetricsPojo, RecosPojo recosPojo, List<ShareHoldingTrendData> list, AboutCompanyPojo aboutCompanyPojo, FinancialsMintGeinePojo financialsMintGeinePojo, PriceRangePojo priceRangePojo, MarketVolumePojo marketVolumePojo) {
        if (keyMetricsPojo == null || recosPojo == null || list == null || aboutCompanyPojo == null || financialsMintGeinePojo == null || priceRangePojo == null || marketVolumePojo == null) {
            return false;
        }
        this.b.getPriceRangeResponse(priceRangePojo);
        return true;
    }

    public static void c() {
        h = new KeyMetricsPojo[]{null};
        i = new RecosPojo[]{null};
        j = new AboutCompanyPojo[]{null};
        o = new FinancialsMintGeinePojo[]{null};
        p = new PriceRangePojo[]{null};
        q = new MarketVolumePojo[]{null};
        s = new List[]{null};
        r = null;
    }

    private void s(JSONObject jSONObject, String str) {
        this.b.getAboutCompanyData(jSONObject, str);
    }

    private void t(KeyMetricsPojo keyMetricsPojo, RecosPojo recosPojo, List<ShareHoldingTrendData> list, AboutCompanyPojo aboutCompanyPojo, FinancialsMintGeinePojo financialsMintGeinePojo, PriceRangePojo priceRangePojo, MarketVolumePojo marketVolumePojo) {
        this.b.processMergedResponse(keyMetricsPojo, recosPojo, list, aboutCompanyPojo, financialsMintGeinePojo, priceRangePojo, marketVolumePojo);
    }

    public void b() {
        if (a(h[0], i[0], s[0], j[0], o[0], p[0], q[0])) {
            t(h[0], i[0], s[0], j[0], o[0], p[0], q[0]);
        }
    }

    public void d(String str) {
        Log.e("getCompanyDetail", "getCompanyDetail: " + str);
        this.c.k(0, this.a, str, null, w2.a(), false, false);
    }

    public void e(String str) {
        this.e = str;
        HashMap<String, String> hashMap = new HashMap<>();
        hashMap.put("mintgenie-client", "web");
        this.c.k(0, this.a, str, null, hashMap, false, false);
    }

    public void f(String str, AppCompatActivity appCompatActivity) {
        Log.e("getCompanyDetail", "getCompanyDetail: " + str);
        this.c.k(0, this.a, str, null, u4.h.j(appCompatActivity), false, false);
    }

    public void g(String str) {
        this.f = str;
        this.c.k(0, this.a, str, null, w2.a(), false, false);
    }

    @Override
    public void getJsonFromServer(boolean z, String str, JSONObject jSONObject, String str2) {
        if (!z || jSONObject == null) {
            com.htmedia.mint.utils.o0.a(str, str2);
            this.b.onError(str2, str);
        } else {
            Log.d("response", jSONObject.toString());
            s(jSONObject, str);
        }
    }

    public void h(String str) {
        this.c.k(0, this.a, str, null, w2.a(), false, false);
    }

    public void i(String str, String str2, String str3) {
        HashMap<String, String> hashMap = new HashMap<>();
        hashMap.put("mintgenie-client", "web");
        this.c.k(0, str3, "https://api-mintgenie.livemint.com/api-gateway/fundamental/markets-data/live-price/v2?exchangeCode=" + str + "&tickerId=" + str2, null, hashMap, false, false);
    }

    public void j(String str) {
        this.g = str;
        this.c.k(0, this.a, str, null, null, false, false);
    }

    public void k(int i2, String str, String str2, JSONObject jSONObject, HashMap<String, String> hashMap, boolean z, boolean z2) {
        this.c.k(i2, str, str2, jSONObject, hashMap, z, z2);
    }

    public void l(String str, HashMap<String, String> hashMap) {
        this.c.k(0, this.a, str, null, hashMap, false, false);
    }

    public void m(String str) {
        this.c.k(0, this.a, str, null, w2.a(), false, false);
    }

    public void n(String str) {
        this.c.k(0, this.a, str, null, w2.a(), false, false);
    }

    public void o(String str) {
        this.c.k(0, this.a, str, null, w2.a(), false, false);
    }

    public void p(String str, String str2, String str3, String str4, String str5, String str6, HashMap<String, String> hashMap, String str7) {
        r = str7;
        if (p[0] == null) {
            ((o) ApiClient.getClientwithOutHeader().create(o.class)).b(str6, hashMap).enqueue(new a());
        }
        if (s[0] == null) {
            ((o) ApiClient.getClientwithOutHeader().create(o.class)).a(str, hashMap).enqueue(new b());
        }
        if (h[0] == null) {
            ((o) ApiClient.getClientwithOutHeader().create(o.class)).d(str3, hashMap).enqueue(new c());
        }
        if (i[0] == null) {
            ((o) ApiClient.getClientwithOutHeader().create(o.class)).e(str2, hashMap).enqueue(new d());
        }
        if (j[0] == null) {
            ((o) ApiClient.getClientwithOutHeader().create(o.class)).c(str4, hashMap).enqueue(new e());
        }
        if (o[0] == null) {
            HashMap hashMap2 = new HashMap();
            hashMap2.put("mintgenie-client", "web");
            ((o) ApiClient.getClientwithOutHeader().create(o.class)).f(str5, hashMap2).enqueue(new f());
        }
    }

    public void q(String str) {
        this.d = str;
        this.c.k(0, this.a, str, null, w2.a(), true, true);
    }

    public void r(String str) {
        this.c.k(0, this.a, str, null, w2.a(), false, false);
    }
}