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

173 lines
5.9 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;
/* loaded from: classes.dex */
public final class Tey extends TypeAdapter implements HJa {
private Gson a;
private PYE c;
private InterfaceC15734iCu e;
public Tey(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.a = gson;
this.e = interfaceC15734iCu;
this.c = pye;
}
@Override // com.google.gson.TypeAdapter
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
if (obj == null) {
jsonWriter.nullValue();
return;
}
yzb yzbVar = (yzb) obj;
Gson gson = this.a;
PYE pye = this.c;
jsonWriter.beginObject();
if (yzbVar != yzbVar.d) {
pye.c(jsonWriter, 613);
GBz gBz = new GBz();
List<SWg> list = yzbVar.d;
DTh.a(gson, gBz, list).write(jsonWriter, list);
}
String str = yzbVar.e;
pye.c(jsonWriter, 103);
String str2 = yzbVar.e;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
String str3 = yzbVar.c;
pye.c(jsonWriter, 615);
String str4 = yzbVar.c;
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
String str5 = yzbVar.a;
pye.c(jsonWriter, 458);
String str6 = yzbVar.a;
DTh.b(gson, String.class, str6).write(jsonWriter, str6);
String str7 = yzbVar.b;
pye.c(jsonWriter, 92);
String str8 = yzbVar.b;
DTh.b(gson, String.class, str8).write(jsonWriter, str8);
String str9 = yzbVar.h;
pye.c(jsonWriter, 277);
String str10 = yzbVar.h;
DTh.b(gson, String.class, str10).write(jsonWriter, str10);
String str11 = yzbVar.f;
pye.c(jsonWriter, 419);
String str12 = yzbVar.f;
DTh.b(gson, String.class, str12).write(jsonWriter, str12);
String str13 = yzbVar.g;
pye.c(jsonWriter, 638);
String str14 = yzbVar.g;
DTh.b(gson, String.class, str14).write(jsonWriter, str14);
String str15 = yzbVar.i;
pye.c(jsonWriter, 502);
String str16 = yzbVar.i;
DTh.b(gson, String.class, str16).write(jsonWriter, str16);
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;
}
yzb yzbVar = new yzb();
Gson gson = this.a;
InterfaceC15734iCu interfaceC15734iCu = this.e;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
switch (e) {
case 3:
if (!z) {
yzbVar.d = null;
break;
} else {
yzbVar.d = (List) gson.getAdapter(new GBz()).read2(jsonReader);
break;
}
case 29:
case 239:
if (!z) {
yzbVar.c = null;
break;
} else {
yzbVar.c = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 45:
if (!z) {
yzbVar.a = null;
break;
} else {
yzbVar.a = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 133:
if (!z) {
yzbVar.h = null;
break;
} else {
yzbVar.h = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 478:
case 483:
if (!z) {
yzbVar.e = null;
break;
} else {
yzbVar.e = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 503:
if (!z) {
yzbVar.g = null;
break;
} else {
yzbVar.g = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 598:
if (!z) {
yzbVar.i = null;
break;
} else {
yzbVar.i = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 623:
if (!z) {
yzbVar.b = null;
break;
} else {
yzbVar.b = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
case 672:
if (!z) {
yzbVar.f = null;
break;
} else {
yzbVar.f = (String) gson.getAdapter(String.class).read2(jsonReader);
break;
}
default:
jsonReader.skipValue();
continue;
}
jsonReader.nextNull();
}
jsonReader.endObject();
return yzbVar;
}
}