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

134 lines
5.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;
import org.bouncycastle.crypto.tls.CipherSuite;
/* loaded from: classes.dex */
public final class tbx extends TypeAdapter implements HJa {
private InterfaceC15734iCu c;
private Gson d;
private PYE e;
public tbx(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.d = gson;
this.c = interfaceC15734iCu;
this.e = pye;
}
@Override // com.google.gson.TypeAdapter
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
if (obj == null) {
jsonWriter.nullValue();
return;
}
C16374nnr.LWm lWm = (C16374nnr.LWm) obj;
Gson gson = this.d;
PYE pye = this.e;
jsonWriter.beginObject();
String str = lWm.e;
pye.c(jsonWriter, CipherSuite.TLS_DHE_PSK_WITH_AES_128_CBC_SHA256);
String str2 = lWm.e;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
String str3 = lWm.a;
pye.c(jsonWriter, 278);
String str4 = lWm.a;
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
String str5 = lWm.d;
pye.c(jsonWriter, 529);
String str6 = lWm.d;
DTh.b(gson, String.class, str6).write(jsonWriter, str6);
String str7 = lWm.b;
pye.c(jsonWriter, 620);
String str8 = lWm.b;
DTh.b(gson, String.class, str8).write(jsonWriter, str8);
String str9 = lWm.c;
pye.c(jsonWriter, 67);
String str10 = lWm.c;
DTh.b(gson, String.class, str10).write(jsonWriter, str10);
String str11 = lWm.g;
pye.c(jsonWriter, 283);
String str12 = lWm.g;
DTh.b(gson, String.class, str12).write(jsonWriter, str12);
String str13 = lWm.h;
pye.c(jsonWriter, 317);
String str14 = lWm.h;
DTh.b(gson, String.class, str14).write(jsonWriter, str14);
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.LWm lWm = new C16374nnr.LWm();
Gson gson = this.d;
InterfaceC15734iCu interfaceC15734iCu = this.c;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 94) {
if (e != 116) {
if (e != 148) {
if (e != 152) {
if (e != 155) {
if (e != 229) {
if (e != 606) {
jsonReader.skipValue();
} else if (z) {
lWm.c = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
lWm.c = null;
jsonReader.nextNull();
}
} else if (z) {
lWm.e = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
lWm.e = null;
jsonReader.nextNull();
}
} else if (z) {
lWm.d = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
lWm.d = null;
jsonReader.nextNull();
}
} else if (z) {
lWm.a = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
lWm.a = null;
jsonReader.nextNull();
}
} else if (z) {
lWm.g = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
lWm.g = null;
jsonReader.nextNull();
}
} else if (z) {
lWm.b = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
lWm.b = null;
jsonReader.nextNull();
}
} else if (z) {
lWm.h = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
lWm.h = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return lWm;
}
}