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

256 lines
9.2 KiB
Java

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 org.bouncycastle.crypto.tls.CipherSuite;
import org.bouncycastle.math.Primes;
/* loaded from: classes.dex */
public final class PV extends TypeAdapter implements HJa {
private PYE b;
private Gson c;
private InterfaceC15734iCu d;
public PV(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.c = gson;
this.d = interfaceC15734iCu;
this.b = pye;
}
@Override // com.google.gson.TypeAdapter
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
if (obj == null) {
jsonWriter.nullValue();
return;
}
PY py = (PY) obj;
Gson gson = this.c;
PYE pye = this.b;
jsonWriter.beginObject();
if (py != py.b) {
pye.c(jsonWriter, 192);
String str = py.b;
DTh.b(gson, String.class, str).write(jsonWriter, str);
}
if (py != py.a) {
pye.c(jsonWriter, 657);
String str2 = py.a;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
}
if (py != py.c) {
pye.c(jsonWriter, Primes.SMALL_FACTOR_LIMIT);
String str3 = py.c;
DTh.b(gson, String.class, str3).write(jsonWriter, str3);
}
if (py != py.e) {
pye.c(jsonWriter, 273);
String str4 = py.e;
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
}
if (py != py.d) {
pye.c(jsonWriter, 85);
String str5 = py.d;
DTh.b(gson, String.class, str5).write(jsonWriter, str5);
}
if (py != py.i) {
pye.c(jsonWriter, 210);
String str6 = py.i;
DTh.b(gson, String.class, str6).write(jsonWriter, str6);
}
if (py != py.h) {
pye.c(jsonWriter, 486);
String str7 = py.h;
DTh.b(gson, String.class, str7).write(jsonWriter, str7);
}
if (py != py.j) {
pye.c(jsonWriter, 475);
String str8 = py.j;
DTh.b(gson, String.class, str8).write(jsonWriter, str8);
}
pye.c(jsonWriter, 39);
Class cls = Boolean.TYPE;
Boolean valueOf = Boolean.valueOf(py.f);
DTh.b(gson, cls, valueOf).write(jsonWriter, valueOf);
pye.c(jsonWriter, 521);
Class cls2 = Boolean.TYPE;
Boolean valueOf2 = Boolean.valueOf(py.g);
DTh.b(gson, cls2, valueOf2).write(jsonWriter, valueOf2);
pye.c(jsonWriter, 272);
Class cls3 = Boolean.TYPE;
Boolean valueOf3 = Boolean.valueOf(py.m);
DTh.b(gson, cls3, valueOf3).write(jsonWriter, valueOf3);
pye.c(jsonWriter, CipherSuite.TLS_PSK_WITH_3DES_EDE_CBC_SHA);
Class cls4 = Boolean.TYPE;
Boolean valueOf4 = Boolean.valueOf(py.f8315o);
DTh.b(gson, cls4, valueOf4).write(jsonWriter, valueOf4);
pye.c(jsonWriter, 485);
Class cls5 = Boolean.TYPE;
Boolean valueOf5 = Boolean.valueOf(py.k);
DTh.b(gson, cls5, valueOf5).write(jsonWriter, valueOf5);
pye.c(jsonWriter, 516);
Class cls6 = Boolean.TYPE;
Boolean valueOf6 = Boolean.valueOf(py.n);
DTh.b(gson, cls6, valueOf6).write(jsonWriter, valueOf6);
if (py != py.l) {
pye.c(jsonWriter, CipherSuite.TLS_DHE_RSA_WITH_AES_256_GCM_SHA384);
YS ys = py.l;
DTh.b(gson, YS.class, ys).write(jsonWriter, ys);
}
pye.c(jsonWriter, 81);
Class cls7 = Integer.TYPE;
Integer valueOf7 = Integer.valueOf(py.r);
DTh.b(gson, cls7, valueOf7).write(jsonWriter, valueOf7);
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;
}
PY py = new PY();
Gson gson = this.c;
InterfaceC15734iCu interfaceC15734iCu = this.d;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
switch (e) {
case 7:
if (!z) {
break;
} else {
py.f = ((Boolean) gson.getAdapter(Boolean.class).read2(jsonReader)).booleanValue();
break;
}
case 30:
if (!z) {
py.j = null;
break;
} else {
py.j = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case CipherSuite.TLS_RSA_WITH_SEED_CBC_SHA /* 150 */:
if (!z) {
py.d = null;
break;
} else {
py.d = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case CipherSuite.TLS_RSA_PSK_WITH_NULL_SHA384 /* 185 */:
if (!z) {
break;
} else {
py.m = ((Boolean) gson.getAdapter(Boolean.class).read2(jsonReader)).booleanValue();
break;
}
case 248:
if (!z) {
py.h = null;
break;
} else {
py.h = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 258:
if (!z) {
py.a = null;
break;
} else {
py.a = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 285:
if (!z) {
break;
} else {
py.n = ((Boolean) gson.getAdapter(Boolean.class).read2(jsonReader)).booleanValue();
break;
}
case 348:
if (!z) {
break;
} else {
py.f8315o = ((Boolean) gson.getAdapter(Boolean.class).read2(jsonReader)).booleanValue();
break;
}
case 388:
if (!z) {
py.b = null;
break;
} else {
py.b = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 444:
if (!z) {
break;
} else {
py.g = ((Boolean) gson.getAdapter(Boolean.class).read2(jsonReader)).booleanValue();
break;
}
case 476:
if (!z) {
py.i = null;
break;
} else {
py.i = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 489:
if (!z) {
break;
} else {
py.k = ((Boolean) gson.getAdapter(Boolean.class).read2(jsonReader)).booleanValue();
break;
}
case 495:
if (!z) {
py.c = null;
break;
} else {
py.c = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 580:
if (!z) {
break;
} else {
py.r = ((Integer) gson.getAdapter(Integer.class).read2(jsonReader)).intValue();
break;
}
case 594:
if (!z) {
py.l = null;
break;
} else {
py.l = (YS) gson.getAdapter(YS.class).read2(jsonReader);
break;
}
case 620:
if (!z) {
py.e = null;
break;
} else {
py.e = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
default:
jsonReader.skipValue();
continue;
}
jsonReader.nextNull();
}
jsonReader.endObject();
return py;
}
}