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

193 lines
8.5 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 java.util.List;
import org.bouncycastle.crypto.tls.CipherSuite;
/* loaded from: classes.dex */
public final class TAW extends TypeAdapter implements HJa {
private InterfaceC15734iCu a;
private Gson b;
private PYE d;
public TAW(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.b = gson;
this.a = 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;
}
qRQ qrq = (qRQ) obj;
Gson gson = this.b;
PYE pye = this.d;
jsonWriter.beginObject();
if (qrq != qrq.c) {
pye.c(jsonWriter, 535);
String str = qrq.c;
DTh.b(gson, String.class, str).write(jsonWriter, str);
}
pye.c(jsonWriter, 345);
Class cls = Long.TYPE;
Long valueOf = Long.valueOf(qrq.d);
DTh.b(gson, cls, valueOf).write(jsonWriter, valueOf);
if (qrq != qrq.a) {
pye.c(jsonWriter, CipherSuite.TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256);
ylj yljVar = new ylj();
List<C17104tuu> list = qrq.a;
DTh.a(gson, yljVar, list).write(jsonWriter, list);
}
pye.c(jsonWriter, 81);
Class cls2 = Integer.TYPE;
Integer valueOf2 = Integer.valueOf(qrq.e);
DTh.b(gson, cls2, valueOf2).write(jsonWriter, valueOf2);
pye.c(jsonWriter, 350);
Class cls3 = Integer.TYPE;
Integer valueOf3 = Integer.valueOf(qrq.b);
DTh.b(gson, cls3, valueOf3).write(jsonWriter, valueOf3);
pye.c(jsonWriter, 280);
Class cls4 = Integer.TYPE;
Integer valueOf4 = Integer.valueOf(qrq.j);
DTh.b(gson, cls4, valueOf4).write(jsonWriter, valueOf4);
pye.c(jsonWriter, 66);
Class cls5 = Long.TYPE;
Long valueOf5 = Long.valueOf(qrq.i);
DTh.b(gson, cls5, valueOf5).write(jsonWriter, valueOf5);
if (qrq != qrq.h) {
pye.c(jsonWriter, 606);
String str2 = qrq.h;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
}
if (qrq != qrq.g) {
pye.c(jsonWriter, CipherSuite.TLS_PSK_WITH_AES_128_CBC_SHA);
String str3 = qrq.g;
DTh.b(gson, String.class, str3).write(jsonWriter, str3);
}
if (qrq != qrq.f) {
pye.c(jsonWriter, 107);
String str4 = qrq.f;
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
}
if (qrq != qrq.n) {
pye.c(jsonWriter, 358);
EnumC15824isw enumC15824isw = qrq.n;
DTh.b(gson, EnumC15824isw.class, enumC15824isw).write(jsonWriter, enumC15824isw);
}
if (qrq != qrq.f9246o) {
pye.c(jsonWriter, 311);
EnumC14464fth enumC14464fth = qrq.f9246o;
DTh.b(gson, EnumC14464fth.class, enumC14464fth).write(jsonWriter, enumC14464fth);
}
qrq.d(gson, jsonWriter, pye);
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;
}
qRQ qrq = new qRQ();
Gson gson = this.b;
InterfaceC15734iCu interfaceC15734iCu = this.a;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 1) {
if (e != 62) {
if (e != 75) {
if (e != 129) {
if (e != 145) {
if (e != 183) {
if (e != 479) {
if (e != 543) {
if (e != 593) {
if (e != 630) {
if (e != 579) {
if (e != 580) {
qrq.a(gson, jsonReader, e);
} else if (z) {
qrq.e = ((Integer) gson.getAdapter(Integer.class).read2(jsonReader)).intValue();
} else {
jsonReader.nextNull();
}
} else if (z) {
qrq.d = ((Long) gson.getAdapter(Long.class).read2(jsonReader)).longValue();
} else {
jsonReader.nextNull();
}
} else if (z) {
qrq.j = ((Integer) gson.getAdapter(Integer.class).read2(jsonReader)).intValue();
} else {
jsonReader.nextNull();
}
} else if (z) {
qrq.c = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
qrq.c = null;
jsonReader.nextNull();
}
} else if (z) {
qrq.b = ((Integer) gson.getAdapter(Integer.class).read2(jsonReader)).intValue();
} else {
jsonReader.nextNull();
}
} else if (z) {
qrq.a = (List) gson.getAdapter(new ylj()).read2(jsonReader);
} else {
qrq.a = null;
jsonReader.nextNull();
}
} else if (z) {
qrq.h = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
qrq.h = null;
jsonReader.nextNull();
}
} else if (z) {
qrq.f = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
qrq.f = null;
jsonReader.nextNull();
}
} else if (z) {
qrq.f9246o = (EnumC14464fth) gson.getAdapter(EnumC14464fth.class).read2(jsonReader);
} else {
qrq.f9246o = null;
jsonReader.nextNull();
}
} else if (z) {
qrq.g = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
qrq.g = null;
jsonReader.nextNull();
}
} else if (z) {
qrq.i = ((Long) gson.getAdapter(Long.class).read2(jsonReader)).longValue();
} else {
jsonReader.nextNull();
}
} else if (z) {
qrq.n = (EnumC15824isw) gson.getAdapter(EnumC15824isw.class).read2(jsonReader);
} else {
qrq.n = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return qrq;
}
}