what-the-bank/sources/com/scb/phone/data/network/di/ServiceResponseConverterMod...

94 lines
3.8 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.data.network.di;
import com.google.gson.FieldNamingPolicy;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import o.ACk;
import o.ASD;
import o.Bkj;
import o.C0132AAh;
import o.C14158fns;
import o.C15387gp;
import o.C15603gzW;
import o.C15875jNA;
import o.C16058knG;
import o.C16388nrE;
import o.C17308vgM;
import o.C17709zAb;
import o.C4212bTg;
import o.Eoc;
import o.Frx;
import o.Gwj;
import o.MQP;
import o.MhI;
import o.NKQ;
import o.NZw;
import o.VdB;
import o.Vrq;
import o.XjK;
import o.XrQ;
import o.YTw;
import o.ZYk;
import o.ZmQ;
import o.aTD;
import o.fZH;
import o.hex;
import o.iMM;
import o.lIT;
import o.oQz;
import o.wjY;
import retrofit2.Converter;
import retrofit2.converter.gson.GsonConverterFactory;
import retrofit2.converter.scalars.ScalarsConverterFactory;
import retrofit2.converter.simplexml.SimpleXmlConverterFactory;
/* loaded from: classes.dex */
public class ServiceResponseConverterModule {
@fZH
public Converter.Factory c() {
return GsonConverterFactory.create(new GsonBuilder().setDateFormat("yyyy-MMM-dd'T'HH:mm:ss.SSSZ").setFieldNamingPolicy(FieldNamingPolicy.IDENTITY).setLenient().registerTypeAdapterFactory(new C15387gp.Sts()).create());
}
@fZH
public Converter.Factory j() {
return ScalarsConverterFactory.create();
}
@fZH
public Converter.Factory a() {
return GsonConverterFactory.create(new GsonBuilder().registerTypeAdapterFactory(new C15387gp.Sts()).registerTypeAdapter(YTw.class, new XjK.LWm(new Gson())).create());
}
@fZH
public Converter.Factory b() {
return GsonConverterFactory.create(new GsonBuilder().registerTypeAdapter(C17308vgM.class, new aTD.Sts(new Gson())).create());
}
@fZH
public Converter.Factory g() {
Gson gson = new Gson();
return GsonConverterFactory.create(new GsonBuilder().registerTypeAdapter(ZmQ.class, new aTD.Sts(gson)).registerTypeAdapter(oQz.class, new aTD.Sts(gson)).registerTypeAdapter(ACk.class, new aTD.Sts(gson)).registerTypeAdapter(lIT.class, new aTD.Sts(gson)).registerTypeAdapter(C17709zAb.class, new aTD.Sts(gson)).registerTypeAdapter(MQP.class, new aTD.Sts(gson)).create());
}
@fZH
public Converter.Factory e() {
Gson gson = new Gson();
return GsonConverterFactory.create(new GsonBuilder().registerTypeAdapter(Bkj.class, new aTD.Sts(gson)).registerTypeAdapter(C15875jNA.class, new aTD.Sts(gson)).registerTypeAdapter(C16058knG.class, new aTD.Sts(gson)).registerTypeAdapter(MhI.class, new aTD.Sts(gson)).registerTypeAdapter(Frx.class, new aTD.Sts(gson)).registerTypeAdapter(XrQ.class, new aTD.Sts(gson)).registerTypeAdapter(wjY.class, new aTD.Sts(gson)).registerTypeAdapter(Gwj.class, new aTD.Sts(gson)).registerTypeAdapter(C14158fns.class, new aTD.Sts(gson)).registerTypeAdapter(C15603gzW.class, new aTD.Sts(gson)).registerTypeAdapter(ZYk.class, new aTD.Sts(gson)).registerTypeAdapter(ASD.class, new aTD.Sts(gson)).registerTypeAdapter(iMM.class, new aTD.Sts(gson)).registerTypeAdapter(hex.class, new aTD.Sts(gson)).registerTypeAdapter(VdB.class, new aTD.Sts(gson)).registerTypeAdapter(C16388nrE.class, new aTD.Sts(gson)).registerTypeAdapter(NKQ.class, new aTD.Sts(gson)).registerTypeAdapter(Vrq.class, new aTD.Sts(gson)).create());
}
@fZH
public Converter.Factory d() {
return GsonConverterFactory.create(new GsonBuilder().registerTypeAdapter(NZw.class, new Eoc(new Gson())).create());
}
@fZH
public Converter.Factory h() {
return GsonConverterFactory.create(new GsonBuilder().registerTypeAdapter(C4212bTg.class, new C0132AAh()).setDateFormat("yyyy-MMM-dd'T'HH:mm:ss.SSSZ").setFieldNamingPolicy(FieldNamingPolicy.IDENTITY).setLenient().create());
}
@fZH
public Converter.Factory i() {
return SimpleXmlConverterFactory.create();
}
}