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

88 lines
2.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 PQl extends TypeAdapter implements HJa {
private Gson a;
private PYE d;
private InterfaceC15734iCu e;
public PQl(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.a = gson;
this.e = 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;
}
SWg sWg = (SWg) obj;
Gson gson = this.a;
PYE pye = this.d;
jsonWriter.beginObject();
String str = sWg.b;
pye.c(jsonWriter, 560);
String str2 = sWg.b;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
String str3 = sWg.c;
pye.c(jsonWriter, 502);
String str4 = sWg.c;
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
String str5 = sWg.e;
pye.c(jsonWriter, 325);
String str6 = sWg.e;
DTh.b(gson, String.class, str6).write(jsonWriter, str6);
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;
}
SWg sWg = new SWg();
Gson gson = this.a;
InterfaceC15734iCu interfaceC15734iCu = this.e;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 134) {
if (e != 277) {
if (e != 598) {
jsonReader.skipValue();
} else if (z) {
sWg.c = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
sWg.c = null;
jsonReader.nextNull();
}
} else if (z) {
sWg.b = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
sWg.b = null;
jsonReader.nextNull();
}
} else if (z) {
sWg.e = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
sWg.e = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return sWg;
}
}