正在查看: Mint v5.7.3 应用的 r1.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mint v5.7.3 应用的 r1.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.htmedia.mint.utils;
import android.text.TextUtils;
import android.util.Log;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.htmedia.mint.AppController;
import com.htmedia.mint.pojo.CommoditiesPojo;
import com.htmedia.mint.pojo.CommoditiesTable;
import com.htmedia.mint.pojo.GainerLoserPojo;
import com.htmedia.mint.pojo.GoldSilverResponse;
import com.htmedia.mint.pojo.MostActivePojo;
import com.htmedia.mint.pojo.TickerPojo;
import com.htmedia.mint.pojo.companies.announcements.AnnouncementsPojo;
import com.htmedia.mint.pojo.companies.announcements.Table;
import com.htmedia.mint.pojo.companies.financials.mintgeine.FinancialsMintGeinePojo;
import com.htmedia.mint.pojo.companies.financials.mintgeine.Root;
import com.htmedia.mint.pojo.companies.index.CompIndexParams;
import com.htmedia.mint.pojo.companies.index.CompanyIndex;
import com.htmedia.mint.pojo.companies.info.mintGeine.CompanyInfoMintGeinePojo;
import com.htmedia.mint.pojo.config.Config;
import com.htmedia.mint.pojo.config.markets.Bse;
import com.htmedia.mint.pojo.config.markets.Markets;
import com.htmedia.mint.pojo.gainerloser.GainerLoserDetailPojo;
import com.htmedia.mint.pojo.gainerloser.TableMostActive;
import com.htmedia.mint.pojo.indices.IndicesPojo;
import com.htmedia.mint.pojo.indices.IndicesTable;
import com.htmedia.mint.pojo.indicesdetail.chart.ChartEntryPojo;
import com.htmedia.mint.pojo.indicesdetail.index.Index;
import com.htmedia.mint.pojo.indicesdetail.stocks.StockParams;
import com.htmedia.mint.pojo.indicesdetail.stocks.StocksDataPojo;
import com.htmedia.mint.pojo.week_high_low.WeekHighLowPojoNew;
import com.htmedia.mint.utils.q;
import com.thoughtbot.expandablerecyclerview.BuildConfig;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public class r1 {
private Markets a;
private final String b;
boolean c;
private boolean d;
class a extends TypeToken<ArrayList<Root>> {
a() {
}
}
class b extends TypeToken<ArrayList<Table>> {
b() {
}
}
static class c {
static final int[] a;
static {
int[] iArr = new int[q.o.values().length];
a = iArr;
try {
iArr[q.o.MOSTACTIVE_NSE.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
a[q.o.MOSTACTIVE_BSE.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
a[q.o.INDICES.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
a[q.o.COMMODITIES.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
a[q.o.BSE_GAINERLOSER.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
try {
a[q.o.NSE_GAINERLOSER.ordinal()] = 6;
} catch (NoSuchFieldError unused6) {
}
try {
a[q.o.TICKER.ordinal()] = 7;
} catch (NoSuchFieldError unused7) {
}
try {
a[q.o.NSE_WEEKHIGHLOW.ordinal()] = 8;
} catch (NoSuchFieldError unused8) {
}
try {
a[q.o.BSE_WEEKHIGHLOW.ordinal()] = 9;
} catch (NoSuchFieldError unused9) {
}
try {
a[q.o.GOLD_SILVER.ordinal()] = 10;
} catch (NoSuchFieldError unused10) {
}
}
}
class d extends TypeToken<List<GoldSilverResponse>> {
d() {
}
}
class e extends TypeToken<List<com.htmedia.mint.pojo.gainerloser.Table>> {
e() {
}
}
class f extends TypeToken<List<com.htmedia.mint.pojo.gainerloser.Table>> {
f() {
}
}
class g extends TypeToken<List<com.htmedia.mint.pojo.gainerloser.Table>> {
g() {
}
}
class h extends TypeToken<List<com.htmedia.mint.pojo.gainerloser.Table>> {
h() {
}
}
class i extends TypeToken<List<IndicesTable>> {
i() {
}
}
class j extends TypeToken<List<CommoditiesTable>> {
j() {
}
}
class k extends TypeToken<List<TableMostActive>> {
k() {
}
}
class l extends TypeToken<List<com.htmedia.mint.pojo.indicesdetail.stocks.Table>> {
l() {
}
}
public r1() {
Config g2 = AppController.j().g();
if (g2 != null && g2.getMarkets() != null) {
this.a = g2.getMarkets();
this.d = g2.getMarkets().isMintgenieAndroid();
}
if (g2 == null || g2.getHomeMarketCollection() == null || TextUtils.isEmpty(g2.getHomeMarketCollection().getMarketTickerUrl())) {
this.b = "https://images.livemint.com/markets/prod/MG_ticker.json";
} else {
this.b = g2.getHomeMarketCollection().getMarketTickerUrl();
}
}
private TickerPojo C(JSONObject jSONObject, boolean z) {
return (TickerPojo) new Gson().fromJson(jSONObject.toString(), TickerPojo.class);
}
private String c() {
return this.a.getCompanies().getBaseMintGenieUrl() + "api/v3/charts";
}
private CommoditiesPojo d(JSONObject jSONObject, boolean z) {
Gson gson = new Gson();
if (!z) {
return (CommoditiesPojo) gson.fromJson(jSONObject.toString(), CommoditiesPojo.class);
}
CommoditiesPojo commoditiesPojo = null;
try {
JSONArray jSONArray = jSONObject.getJSONArray("result");
Type type = new j().getType();
CommoditiesPojo commoditiesPojo2 = new CommoditiesPojo();
try {
commoditiesPojo2.setTable((List) gson.fromJson(jSONArray.toString(), type));
return commoditiesPojo2;
} catch (JSONException e2) {
e = e2;
commoditiesPojo = commoditiesPojo2;
e.printStackTrace();
return commoditiesPojo;
}
} catch (JSONException e3) {
e = e3;
}
}
private TickerPojo h(JSONObject jSONObject, boolean z, String str) {
Gson gson = new Gson();
Log.d("HomePresenter", str + " before parsing");
String y = y(q.o.BSE_GAINERLOSER);
if (!z) {
return (TickerPojo) gson.fromJson(jSONObject.toString(), TickerPojo.class);
}
if (str.equalsIgnoreCase(y)) {
TickerPojo tickerPojo = (TickerPojo) gson.fromJson(jSONObject.toString(), TickerPojo.class);
if (tickerPojo.getBSEGainers() == null || tickerPojo.getBSEGainers().size() <= 0) {
return tickerPojo;
}
GainerLoserPojo gainerLoserPojo = tickerPojo.getBSEGainers().get(0);
tickerPojo.getBSEGainers().get(0).setUPDTIME(gainerLoserPojo.getUPDTIME() + " " + gainerLoserPojo.getTime());
return tickerPojo;
}
TickerPojo tickerPojo2 = (TickerPojo) gson.fromJson(jSONObject.toString(), TickerPojo.class);
if (tickerPojo2 == null) {
return null;
}
TickerPojo tickerPojo3 = new TickerPojo();
tickerPojo3.setNSEGainers(tickerPojo2.getBSEGainers());
tickerPojo3.setNSELosers(tickerPojo2.getBSELosers());
if (tickerPojo3.getNSEGainers() != null && tickerPojo3.getNSEGainers().size() > 0) {
GainerLoserPojo gainerLoserPojo2 = tickerPojo3.getNSEGainers().get(0);
tickerPojo3.getNSEGainers().get(0).setUPDTIME(gainerLoserPojo2.getUPDTIME() + " " + gainerLoserPojo2.getTime());
}
return tickerPojo3;
}
private GainerLoserDetailPojo i(JSONObject jSONObject, boolean z, String str, int i2) {
Gson gson = new Gson();
Log.d("HomePresenter", str + " before parsing");
if (!z) {
return (GainerLoserDetailPojo) gson.fromJson(jSONObject.toString(), GainerLoserDetailPojo.class);
}
GainerLoserDetailPojo gainerLoserDetailPojo = null;
try {
JSONArray jSONArray = jSONObject.getJSONArray("topGainers");
JSONArray jSONArray2 = jSONObject.getJSONArray("topLooser");
try {
if (i2 == 0) {
Type type = new e().getType();
GainerLoserDetailPojo gainerLoserDetailPojo2 = new GainerLoserDetailPojo();
gainerLoserDetailPojo2.setTable((List) gson.fromJson(jSONArray.toString(), type));
i2 = gainerLoserDetailPojo2;
} else if (i2 == 2) {
Type type2 = new f().getType();
GainerLoserDetailPojo gainerLoserDetailPojo3 = new GainerLoserDetailPojo();
gainerLoserDetailPojo3.setTable((List) gson.fromJson(jSONArray.toString(), type2));
i2 = gainerLoserDetailPojo3;
} else if (i2 == 1) {
Type type3 = new g().getType();
GainerLoserDetailPojo gainerLoserDetailPojo4 = new GainerLoserDetailPojo();
gainerLoserDetailPojo4.setTable((List) gson.fromJson(jSONArray2.toString(), type3));
i2 = gainerLoserDetailPojo4;
} else {
if (i2 != 3) {
return null;
}
Type type4 = new h().getType();
GainerLoserDetailPojo gainerLoserDetailPojo5 = new GainerLoserDetailPojo();
gainerLoserDetailPojo5.setTable((List) gson.fromJson(jSONArray2.toString(), type4));
i2 = gainerLoserDetailPojo5;
}
return i2;
} catch (JSONException e2) {
e = e2;
gainerLoserDetailPojo = i2;
e.printStackTrace();
return gainerLoserDetailPojo;
}
} catch (JSONException e3) {
e = e3;
}
}
private IndicesPojo t(JSONObject jSONObject, boolean z) {
Gson gson = new Gson();
if (!z) {
return (IndicesPojo) gson.fromJson(jSONObject.toString(), IndicesPojo.class);
}
IndicesPojo indicesPojo = null;
try {
JSONArray jSONArray = jSONObject.getJSONArray("result");
Type type = new i().getType();
IndicesPojo indicesPojo2 = new IndicesPojo();
try {
indicesPojo2.setTable((List) gson.fromJson(jSONArray.toString(), type));
return indicesPojo2;
} catch (JSONException e2) {
e = e2;
indicesPojo = indicesPojo2;
e.printStackTrace();
return indicesPojo;
}
} catch (JSONException e3) {
e = e3;
}
}
private MostActivePojo v(JSONObject jSONObject, boolean z) {
Gson gson = new Gson();
if (!z) {
return (MostActivePojo) gson.fromJson(jSONObject.toString(), MostActivePojo.class);
}
MostActivePojo mostActivePojo = null;
try {
JSONArray jSONArray = jSONObject.getJSONArray("result");
Type type = new k().getType();
MostActivePojo mostActivePojo2 = new MostActivePojo();
try {
List<TableMostActive> list = (List) gson.fromJson(jSONArray.toString(), type);
if (list != null && list.size() > 0) {
TableMostActive tableMostActive = list.get(0);
tableMostActive.setUPDTIME(tableMostActive.getUPDTIME() + " " + tableMostActive.getTime());
}
mostActivePojo2.setTable(list);
return mostActivePojo2;
} catch (JSONException e2) {
e = e2;
mostActivePojo = mostActivePojo2;
e.printStackTrace();
return mostActivePojo;
}
} catch (JSONException e3) {
e = e3;
}
}
public void A(boolean z) {
this.c = z;
}
public String B(String str, boolean z, String str2, int i2) {
if (!this.d) {
return new StocksDataPojo().getParametersForStocks(new StockParams(str, z, str2, true, null, 1, 10, true));
}
return this.a.getCompanies().getBaseMintGenieUrl() + "api/v2/indices/constitutes/" + str2 + "/0/" + i2;
}
public JSONObject a(String str, String str2, String str3) {
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("exchangeType", str);
jSONObject.put("pageNo", str2);
jSONObject.put("pageSize", str3);
} catch (JSONException e2) {
e2.printStackTrace();
}
return jSONObject;
}
public String b(boolean z) {
if (this.d) {
return c();
}
if (!z) {
return AppController.j().g().getMarkets().getIndices().getBaseUrl();
}
if (AppController.j().g().getMarkets().getCompanies().getBaseInternalUrl() == null || AppController.j().g().getMarkets().getCompanies().getBaseInternalUrl().equalsIgnoreCase(BuildConfig.FLAVOR)) {
return AppController.j().g().getMarkets().getIndices().getBaseUrl();
}
return AppController.j().g().getMarkets().getCompanies().getBaseInternalUrl() + "/php/Equity.php?";
}
public String e(boolean z, String str, String str2, boolean z2) {
if (!z) {
return new CompanyIndex().getParamsForCompIndex(new CompIndexParams(str, str2));
}
if (z2) {
return this.a.getCompanies().getBaseMintGenieUrl() + "markets-data/live-price/v2?&tickerId=" + str2 + "&exchangeCode=BSE";
}
return this.a.getCompanies().getBaseMintGenieUrl() + "markets-data/live-price/v2?&tickerId=" + str2 + "&exchangeCode=NSI";
}
public String f() {
return this.a.getCompanies().getBaseMintGenieUrl() + "api/v1/getEventHeadlines/";
}
public String g(String str) {
return this.a.getCompanies().getBaseMintGenieUrl() + "api/v2/stockFinancials/" + str;
}
public ChartEntryPojo j(JSONObject jSONObject) {
Gson gson = new Gson();
if (!this.d) {
return (ChartEntryPojo) gson.fromJson(jSONObject.toString(), ChartEntryPojo.class);
}
try {
return (ChartEntryPojo) gson.fromJson(jSONObject.getJSONArray("result").get(0).toString(), ChartEntryPojo.class);
} catch (JSONException e2) {
e2.printStackTrace();
return null;
}
}
public CompanyIndex k(JSONObject jSONObject) {
Gson gson = new Gson();
if (!u()) {
if (jSONObject != null) {
return (CompanyIndex) gson.fromJson(jSONObject.toString(), CompanyIndex.class);
}
return null;
}
com.htmedia.mint.pojo.companies.index.Table table = (com.htmedia.mint.pojo.companies.index.Table) gson.fromJson(jSONObject.toString(), com.htmedia.mint.pojo.companies.index.Table.class);
CompanyIndex companyIndex = new CompanyIndex();
ArrayList<com.htmedia.mint.pojo.companies.index.Table> arrayList = new ArrayList<>();
arrayList.add(table);
companyIndex.setIndexes(arrayList);
return companyIndex;
}
public CompanyInfoMintGeinePojo l(JSONObject jSONObject) {
return (CompanyInfoMintGeinePojo) new Gson().fromJson(jSONObject.toString(), CompanyInfoMintGeinePojo.class);
}
public String m(String str) {
return this.a.getCompanies().getBaseMintGenieUrl() + "api/v2/companyProfile/" + str;
}
public String n(boolean z, String str, String str2, boolean z2) {
if (!z) {
return z2 ? AppController.j().g().getMarkets().getIndices().getBseDetails() : AppController.j().g().getMarkets().getIndices().getNseDetails();
}
return this.a.getCompanies().getBaseMintGenieUrl() + "markets-data/live-price/v2?exchangeCode=" + str2 + "&tickerId=" + str;
}
public Index o(JSONObject jSONObject) {
com.htmedia.mint.pojo.indicesdetail.index.Table table;
Index index;
Gson gson = new Gson();
if (!this.d) {
return (Index) gson.fromJson(jSONObject.toString(), Index.class);
}
Index index2 = null;
try {
table = (com.htmedia.mint.pojo.indicesdetail.index.Table) gson.fromJson(jSONObject.toString(), com.htmedia.mint.pojo.indicesdetail.index.Table.class);
index = new Index();
} catch (Exception e2) {
e = e2;
}
try {
ArrayList<com.htmedia.mint.pojo.indicesdetail.index.Table> arrayList = new ArrayList<>();
arrayList.add(table);
index.setIndices(arrayList);
return index;
} catch (Exception e3) {
e = e3;
index2 = index;
e.printStackTrace();
return index2;
}
}
public StocksDataPojo p(JSONObject jSONObject) {
Gson gson = new Gson();
StocksDataPojo stocksDataPojo = null;
if (!this.d) {
if (jSONObject != null) {
return (StocksDataPojo) gson.fromJson(jSONObject.toString(), StocksDataPojo.class);
}
return null;
}
try {
JSONArray jSONArray = jSONObject.getJSONArray("result");
Type type = new l().getType();
StocksDataPojo stocksDataPojo2 = new StocksDataPojo();
try {
stocksDataPojo2.setStocks((ArrayList) gson.fromJson(jSONArray.toString(), type));
return stocksDataPojo2;
} catch (JSONException e2) {
e = e2;
stocksDataPojo = stocksDataPojo2;
e.printStackTrace();
return stocksDataPojo;
}
} catch (JSONException e3) {
e = e3;
}
}
public WeekHighLowPojoNew q(JSONObject jSONObject, boolean z, q.o oVar) {
WeekHighLowPojoNew weekHighLowPojoNew = (WeekHighLowPojoNew) new Gson().fromJson(jSONObject.toString(), WeekHighLowPojoNew.class);
if (z) {
if (oVar == q.o.NSE_WEEKHIGHLOW) {
weekHighLowPojoNew.setNsehigh52Week(weekHighLowPojoNew.getHigh52Week());
weekHighLowPojoNew.setNselow52Week(weekHighLowPojoNew.getLow52Week());
if (weekHighLowPojoNew.getHigh52Week() != null) {
weekHighLowPojoNew.getNSEHIGH().add(weekHighLowPojoNew.getHigh52Week());
}
if (weekHighLowPojoNew.getLow52Week() != null) {
weekHighLowPojoNew.getNSELOW().add(weekHighLowPojoNew.getLow52Week());
}
} else {
if (weekHighLowPojoNew.getHigh52Week() != null) {
weekHighLowPojoNew.getBSEHIGH().add(weekHighLowPojoNew.getHigh52Week());
}
if (weekHighLowPojoNew.getLow52Week() != null) {
weekHighLowPojoNew.getBSELOW().add(weekHighLowPojoNew.getLow52Week());
}
}
}
return weekHighLowPojoNew;
}
public <T> T r(q.o oVar, JSONObject jSONObject, String str) {
Config g2 = AppController.j().g();
if (g2 != null && g2.getMarkets() != null) {
this.d = g2.getMarkets().isMintgenieAndroid();
switch (c.a[oVar.ordinal()]) {
case 1:
case 2:
return (T) v(jSONObject, this.d);
case 3:
return (T) t(jSONObject, this.d);
case 4:
return (T) d(jSONObject, this.d);
case 5:
case 6:
return (T) h(jSONObject, this.d, str);
case 7:
return (T) C(jSONObject, this.d);
case 8:
return (T) q(jSONObject, this.d, oVar);
case 9:
return (T) q(jSONObject, this.d, oVar);
case 10:
try {
return (T) ((List) new Gson().fromJson(jSONObject.getJSONArray("result").toString(), new d().getType()));
} catch (JSONException e2) {
e2.printStackTrace();
return null;
}
}
}
return null;
}
public <T> T s(q.o oVar, JSONObject jSONObject, String str, int i2) {
Config g2 = AppController.j().g();
if (g2 == null || g2.getMarkets() == null) {
return null;
}
boolean isMintgenieAndroid = g2.getMarkets().isMintgenieAndroid();
int i3 = c.a[oVar.ordinal()];
if (i3 == 5 || i3 == 6) {
return (T) i(jSONObject, isMintgenieAndroid, str, i2);
}
return null;
}
public boolean u() {
return this.d;
}
public AnnouncementsPojo w(JSONObject jSONObject) {
try {
Gson gson = new Gson();
if (!this.d) {
if (jSONObject != null) {
return (AnnouncementsPojo) gson.fromJson(jSONObject.toString(), AnnouncementsPojo.class);
}
return null;
}
JSONArray jSONArray = jSONObject.getJSONArray("result");
AnnouncementsPojo announcementsPojo = new AnnouncementsPojo();
announcementsPojo.setAnnouncements((ArrayList) gson.fromJson(jSONArray.toString(), new b().getType()));
return announcementsPojo;
} catch (Exception e2) {
e2.printStackTrace();
return null;
}
}
public FinancialsMintGeinePojo x(JSONObject jSONObject) {
JSONArray jSONArray;
Type type;
FinancialsMintGeinePojo financialsMintGeinePojo;
Gson gson = new Gson();
FinancialsMintGeinePojo financialsMintGeinePojo2 = null;
try {
jSONArray = jSONObject.getJSONArray("result");
type = new a().getType();
financialsMintGeinePojo = new FinancialsMintGeinePojo();
} catch (Exception e2) {
e = e2;
}
try {
financialsMintGeinePojo.setRoot((ArrayList) gson.fromJson(jSONArray.toString(), type));
return financialsMintGeinePojo;
} catch (Exception e3) {
e = e3;
financialsMintGeinePojo2 = financialsMintGeinePojo;
e.printStackTrace();
return financialsMintGeinePojo2;
}
}
public String y(q.o oVar) {
Config g2 = AppController.j().g();
if (g2 == null || g2.getMarkets() == null) {
return BuildConfig.FLAVOR;
}
this.d = g2.getMarkets().isMintgenieAndroid();
Log.d("TAG detail", this.c + " " + oVar.toString());
switch (c.a[oVar.ordinal()]) {
case 1:
if (!this.d) {
break;
} else {
break;
}
case 2:
if (!this.d) {
break;
} else {
break;
}
case 3:
if (!this.d) {
break;
} else {
break;
}
case 5:
if (!this.d) {
break;
} else {
break;
}
case 6:
if (!this.d) {
break;
} else {
break;
}
case 7:
if (this.d) {
break;
}
break;
case 8:
if (!this.d) {
break;
}
break;
case 9:
if (!this.d) {
break;
}
break;
}
return g2.getMarkets().getHigh_low_52().getCombined();
}
public String z(q.o oVar, int i2) {
Config g2 = AppController.j().g();
if (g2 == null || g2.getMarkets() == null) {
return BuildConfig.FLAVOR;
}
boolean isMintgenieAndroid = g2.getMarkets().isMintgenieAndroid();
Markets markets = g2.getMarkets();
if (oVar == q.o.MOSTACTIVE_BSE) {
Bse bse = markets.getMostActiveByVolume().getBse();
return isMintgenieAndroid ? bse.getMintGenieAllRestApi() : bse.getDefault();
}
if (oVar == q.o.MOSTACTIVE_NSE) {
return isMintgenieAndroid ? markets.getMostActiveByVolume().getNse().getMintGenieAllRestApi() : g2.getMarkets().getMostActiveByVolume().getNse().getDefault();
}
if (oVar == q.o.INDICES) {
return isMintgenieAndroid ? markets.getIndices().getPopularIndicesUrl() : g2.getMarkets().getIndices().getDetail();
}
if (oVar != q.o.COMMODITIES) {
return (oVar == q.o.BSE_GAINERLOSER || oVar == q.o.NSE_GAINERLOSER) ? i2 == 0 ? isMintgenieAndroid ? markets.getGainer_loser().getBse().getMintGenieGainLoserAllRestApi() : g2.getMarkets().getGainer_loser().getBse().getGain() : i2 == 1 ? isMintgenieAndroid ? markets.getGainer_loser().getBse().getMintGenieGainLoserAllRestApi() : g2.getMarkets().getGainer_loser().getBse().getLose() : i2 == 2 ? isMintgenieAndroid ? markets.getGainer_loser().getNse().getMintGenieGainLoserAllRestApi() : g2.getMarkets().getGainer_loser().getNse().getGain() : i2 == 3 ? isMintgenieAndroid ? markets.getGainer_loser().getNse().getMintGenieGainLoserAllRestApi() : g2.getMarkets().getGainer_loser().getNse().getLose() : BuildConfig.FLAVOR : BuildConfig.FLAVOR;
}
String combinedV1 = g2.getMarkets().getCommodity().getCombinedV1();
return TextUtils.isEmpty(combinedV1) ? "https://www.livemint.com/api/cms/commodity/getcommodities" : combinedV1;
}
}