what-the-bank/sources/o/aFH.java

165 lines
7.0 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.google.gson.Gson;
import com.google.gson.TypeAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonToken;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import o.C16374nnr;
/* loaded from: classes.dex */
public final class aFH extends TypeAdapter implements HJa {
private Gson a;
private PYE d;
private InterfaceC15734iCu e;
public aFH(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.a = gson;
this.e = interfaceC15734iCu;
this.d = pye;
}
@Override // com.google.gson.TypeAdapter
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
if (obj == null) {
jsonWriter.nullValue();
return;
}
C16374nnr c16374nnr = (C16374nnr) obj;
Gson gson = this.a;
PYE pye = this.d;
jsonWriter.beginObject();
pye.c(jsonWriter, 404);
Class cls = Integer.TYPE;
Integer valueOf = Integer.valueOf(c16374nnr.a);
DTh.b(gson, cls, valueOf).write(jsonWriter, valueOf);
String str = c16374nnr.c;
pye.c(jsonWriter, 266);
String str2 = c16374nnr.c;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
C16374nnr.LWm lWm = c16374nnr.b;
pye.c(jsonWriter, 667);
C16374nnr.LWm lWm2 = c16374nnr.b;
DTh.b(gson, C16374nnr.LWm.class, lWm2).write(jsonWriter, lWm2);
String str3 = c16374nnr.d;
pye.c(jsonWriter, 470);
String str4 = c16374nnr.d;
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
String str5 = c16374nnr.g;
pye.c(jsonWriter, 390);
String str6 = c16374nnr.g;
DTh.b(gson, String.class, str6).write(jsonWriter, str6);
String str7 = c16374nnr.f;
pye.c(jsonWriter, 532);
String str8 = c16374nnr.f;
DTh.b(gson, String.class, str8).write(jsonWriter, str8);
String str9 = c16374nnr.h;
pye.c(jsonWriter, 295);
String str10 = c16374nnr.h;
DTh.b(gson, String.class, str10).write(jsonWriter, str10);
String str11 = c16374nnr.i;
pye.c(jsonWriter, 271);
String str12 = c16374nnr.i;
DTh.b(gson, String.class, str12).write(jsonWriter, str12);
String str13 = c16374nnr.j;
pye.c(jsonWriter, 257);
String str14 = c16374nnr.j;
DTh.b(gson, String.class, str14).write(jsonWriter, str14);
Integer num = c16374nnr.l;
pye.c(jsonWriter, 81);
Integer num2 = c16374nnr.l;
DTh.b(gson, Integer.class, num2).write(jsonWriter, num2);
jsonWriter.endObject();
}
@Override // com.google.gson.TypeAdapter
/* renamed from: read */
public final Object read2(JsonReader jsonReader) throws IOException {
if (jsonReader.peek() == JsonToken.NULL) {
jsonReader.skipValue();
return null;
}
C16374nnr c16374nnr = new C16374nnr();
Gson gson = this.a;
InterfaceC15734iCu interfaceC15734iCu = this.e;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 12) {
if (e != 18) {
if (e != 46) {
if (e != 58) {
if (e != 467) {
if (e != 508) {
if (e != 580) {
if (e != 652) {
if (e != 675) {
if (e != 683) {
jsonReader.skipValue();
} else if (z) {
c16374nnr.b = (C16374nnr.LWm) gson.getAdapter(C16374nnr.LWm.class).read2(jsonReader);
} else {
c16374nnr.b = null;
jsonReader.nextNull();
}
} else if (z) {
c16374nnr.a = ((Integer) gson.getAdapter(Integer.class).read2(jsonReader)).intValue();
} else {
jsonReader.nextNull();
}
} else if (z) {
c16374nnr.h = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
c16374nnr.h = null;
jsonReader.nextNull();
}
} else if (z) {
c16374nnr.l = (Integer) gson.getAdapter(Integer.class).read2(jsonReader);
} else {
c16374nnr.l = null;
jsonReader.nextNull();
}
} else if (z) {
c16374nnr.f = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
c16374nnr.f = null;
jsonReader.nextNull();
}
} else if (z) {
c16374nnr.g = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
c16374nnr.g = null;
jsonReader.nextNull();
}
} else if (z) {
c16374nnr.i = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
c16374nnr.i = null;
jsonReader.nextNull();
}
} else if (z) {
c16374nnr.d = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
c16374nnr.d = null;
jsonReader.nextNull();
}
} else if (z) {
c16374nnr.j = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
c16374nnr.j = null;
jsonReader.nextNull();
}
} else if (z) {
c16374nnr.c = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
c16374nnr.c = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return c16374nnr;
}
}