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

110 lines
3.8 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;
/* loaded from: classes.dex */
public final class GNm extends TypeAdapter implements HJa {
private Gson b;
private InterfaceC15734iCu c;
private PYE d;
public GNm(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.b = gson;
this.c = 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;
}
UeN ueN = (UeN) obj;
Gson gson = this.b;
PYE pye = this.d;
jsonWriter.beginObject();
String str = ueN.e;
pye.c(jsonWriter, 58);
String str2 = ueN.e;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
String str3 = ueN.b;
pye.c(jsonWriter, 292);
String str4 = ueN.b;
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
String str5 = ueN.c;
pye.c(jsonWriter, 276);
String str6 = ueN.c;
DTh.b(gson, String.class, str6).write(jsonWriter, str6);
String str7 = ueN.d;
pye.c(jsonWriter, 296);
String str8 = ueN.d;
DTh.b(gson, String.class, str8).write(jsonWriter, str8);
String str9 = ueN.a;
pye.c(jsonWriter, 75);
String str10 = ueN.a;
DTh.b(gson, String.class, str10).write(jsonWriter, str10);
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;
}
UeN ueN = new UeN();
Gson gson = this.b;
InterfaceC15734iCu interfaceC15734iCu = this.c;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 41) {
if (e != 486) {
if (e != 520) {
if (e != 662) {
if (e != 685) {
jsonReader.skipValue();
} else if (z) {
ueN.d = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
ueN.d = null;
jsonReader.nextNull();
}
} else if (z) {
ueN.a = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
ueN.a = null;
jsonReader.nextNull();
}
} else if (z) {
ueN.c = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
ueN.c = null;
jsonReader.nextNull();
}
} else if (z) {
ueN.b = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
ueN.b = null;
jsonReader.nextNull();
}
} else if (z) {
ueN.e = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
ueN.e = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return ueN;
}
}