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

216 lines
7.6 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;
/* loaded from: classes.dex */
public final class EHX extends TypeAdapter implements HJa {
private Gson a;
private InterfaceC15734iCu c;
private PYE d;
public EHX(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.a = gson;
this.c = 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;
}
C15999kNl c15999kNl = (C15999kNl) obj;
Gson gson = this.a;
PYE pye = this.d;
jsonWriter.beginObject();
if (c15999kNl != c15999kNl.e) {
pye.c(jsonWriter, 454);
BUi bUi = c15999kNl.e;
DTh.b(gson, BUi.class, bUi).write(jsonWriter, bUi);
}
if (c15999kNl != c15999kNl.c) {
pye.c(jsonWriter, 527);
ApB apB = c15999kNl.c;
DTh.b(gson, ApB.class, apB).write(jsonWriter, apB);
}
if (c15999kNl != c15999kNl.b) {
pye.c(jsonWriter, 472);
String str = c15999kNl.b;
DTh.b(gson, String.class, str).write(jsonWriter, str);
}
if (c15999kNl != c15999kNl.a) {
pye.c(jsonWriter, 610);
String str2 = c15999kNl.a;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
}
if (c15999kNl != c15999kNl.d) {
pye.c(jsonWriter, 333);
String str3 = c15999kNl.d;
DTh.b(gson, String.class, str3).write(jsonWriter, str3);
}
if (c15999kNl != c15999kNl.i) {
pye.c(jsonWriter, 232);
Orj orj = c15999kNl.i;
DTh.b(gson, Orj.class, orj).write(jsonWriter, orj);
}
if (c15999kNl != c15999kNl.h) {
pye.c(jsonWriter, 494);
String str4 = c15999kNl.h;
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
}
if (c15999kNl != c15999kNl.g) {
pye.c(jsonWriter, 247);
gKq gkq = c15999kNl.g;
DTh.b(gson, gKq.class, gkq).write(jsonWriter, gkq);
}
if (c15999kNl != c15999kNl.j) {
pye.c(jsonWriter, 398);
String str5 = c15999kNl.j;
DTh.b(gson, String.class, str5).write(jsonWriter, str5);
}
if (c15999kNl != c15999kNl.f) {
pye.c(jsonWriter, 565);
Orj orj2 = c15999kNl.f;
DTh.b(gson, Orj.class, orj2).write(jsonWriter, orj2);
}
if (c15999kNl != c15999kNl.n) {
pye.c(jsonWriter, 416);
String str6 = c15999kNl.n;
DTh.b(gson, String.class, str6).write(jsonWriter, str6);
}
if (c15999kNl != c15999kNl.m) {
pye.c(jsonWriter, 142);
String str7 = c15999kNl.m;
DTh.b(gson, String.class, str7).write(jsonWriter, str7);
}
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;
}
C15999kNl c15999kNl = new C15999kNl();
Gson gson = this.a;
InterfaceC15734iCu interfaceC15734iCu = this.c;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
switch (e) {
case 92:
if (!z) {
c15999kNl.i = null;
break;
} else {
c15999kNl.i = (Orj) gson.getAdapter(Orj.class).read2(jsonReader);
break;
}
case 111:
if (!z) {
c15999kNl.e = null;
break;
} else {
c15999kNl.e = (BUi) gson.getAdapter(BUi.class).read2(jsonReader);
break;
}
case 236:
if (!z) {
c15999kNl.f = null;
break;
} else {
c15999kNl.f = (Orj) gson.getAdapter(Orj.class).read2(jsonReader);
break;
}
case 316:
if (!z) {
c15999kNl.b = null;
break;
} else {
c15999kNl.b = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 327:
if (!z) {
c15999kNl.h = null;
break;
} else {
c15999kNl.h = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 336:
if (!z) {
c15999kNl.d = null;
break;
} else {
c15999kNl.d = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 354:
if (!z) {
c15999kNl.j = null;
break;
} else {
c15999kNl.j = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 382:
if (!z) {
c15999kNl.c = null;
break;
} else {
c15999kNl.c = (ApB) gson.getAdapter(ApB.class).read2(jsonReader);
break;
}
case 585:
if (!z) {
c15999kNl.m = null;
break;
} else {
c15999kNl.m = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 600:
if (!z) {
c15999kNl.g = null;
break;
} else {
c15999kNl.g = (gKq) gson.getAdapter(gKq.class).read2(jsonReader);
break;
}
case 649:
if (!z) {
c15999kNl.n = null;
break;
} else {
c15999kNl.n = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 666:
if (!z) {
c15999kNl.a = null;
break;
} else {
c15999kNl.a = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
default:
jsonReader.skipValue();
continue;
}
jsonReader.nextNull();
}
jsonReader.endObject();
return c15999kNl;
}
}