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

205 lines
7.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 java.util.List;
import org.bouncycastle.crypto.tls.CipherSuite;
/* loaded from: classes.dex */
public final class XJ extends TypeAdapter implements HJa {
private Gson a;
private PYE b;
private InterfaceC15734iCu c;
public XJ(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.a = gson;
this.c = 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;
}
C1202Xx c1202Xx = (C1202Xx) obj;
Gson gson = this.a;
PYE pye = this.b;
jsonWriter.beginObject();
if (c1202Xx != c1202Xx.b) {
pye.c(jsonWriter, 279);
String str = c1202Xx.b;
DTh.b(gson, String.class, str).write(jsonWriter, str);
}
if (c1202Xx != c1202Xx.c) {
pye.c(jsonWriter, 650);
C1197Xu c1197Xu = new C1197Xu();
List<XW> list = c1202Xx.c;
DTh.a(gson, c1197Xu, list).write(jsonWriter, list);
}
if (c1202Xx != c1202Xx.e) {
pye.c(jsonWriter, 249);
String str2 = c1202Xx.e;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
}
pye.c(jsonWriter, 43);
Class cls = Boolean.TYPE;
Boolean valueOf = Boolean.valueOf(c1202Xx.a);
DTh.b(gson, cls, valueOf).write(jsonWriter, valueOf);
if (c1202Xx != c1202Xx.d) {
pye.c(jsonWriter, 259);
String str3 = c1202Xx.d;
DTh.b(gson, String.class, str3).write(jsonWriter, str3);
}
if (c1202Xx != c1202Xx.i) {
pye.c(jsonWriter, 583);
XC xc = new XC();
List<XI> list2 = c1202Xx.i;
DTh.a(gson, xc, list2).write(jsonWriter, list2);
}
if (c1202Xx != c1202Xx.f) {
pye.c(jsonWriter, 456);
String str4 = c1202Xx.f;
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
}
if (c1202Xx != c1202Xx.h) {
pye.c(jsonWriter, 411);
String str5 = c1202Xx.h;
DTh.b(gson, String.class, str5).write(jsonWriter, str5);
}
if (c1202Xx != c1202Xx.j) {
pye.c(jsonWriter, 566);
String str6 = c1202Xx.j;
DTh.b(gson, String.class, str6).write(jsonWriter, str6);
}
if (c1202Xx != c1202Xx.g) {
pye.c(jsonWriter, 512);
String str7 = c1202Xx.g;
DTh.b(gson, String.class, str7).write(jsonWriter, str7);
}
if (c1202Xx != c1202Xx.k) {
pye.c(jsonWriter, 6);
String str8 = c1202Xx.k;
DTh.b(gson, String.class, str8).write(jsonWriter, str8);
}
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;
}
C1202Xx c1202Xx = new C1202Xx();
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 14:
if (!z) {
c1202Xx.k = null;
break;
} else {
c1202Xx.k = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 81:
if (!z) {
c1202Xx.j = null;
break;
} else {
c1202Xx.j = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 136:
if (!z) {
c1202Xx.c = null;
break;
} else {
c1202Xx.c = (List) gson.getAdapter(new C1197Xu()).read2(jsonReader);
break;
}
case CipherSuite.TLS_DHE_PSK_WITH_NULL_SHA384 /* 181 */:
if (!z) {
break;
} else {
c1202Xx.a = ((Boolean) gson.getAdapter(Boolean.class).read2(jsonReader)).booleanValue();
break;
}
case 319:
if (!z) {
c1202Xx.b = null;
break;
} else {
c1202Xx.b = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 398:
if (!z) {
c1202Xx.d = null;
break;
} else {
c1202Xx.d = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 405:
if (!z) {
c1202Xx.g = null;
break;
} else {
c1202Xx.g = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 437:
if (!z) {
c1202Xx.e = null;
break;
} else {
c1202Xx.e = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 447:
if (!z) {
c1202Xx.f = null;
break;
} else {
c1202Xx.f = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 450:
if (!z) {
c1202Xx.i = null;
break;
} else {
c1202Xx.i = (List) gson.getAdapter(new XC()).read2(jsonReader);
break;
}
case 599:
if (!z) {
c1202Xx.h = null;
break;
} else {
c1202Xx.h = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
default:
jsonReader.skipValue();
continue;
}
jsonReader.nextNull();
}
jsonReader.endObject();
return c1202Xx;
}
}