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

89 lines
2.9 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
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;
/* renamed from: o.uEV, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C17130uEV extends TypeAdapter implements HJa {
private PYE b;
private Gson d;
private InterfaceC15734iCu e;
public C17130uEV(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.d = gson;
this.e = 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;
}
QLa qLa = (QLa) obj;
Gson gson = this.d;
PYE pye = this.b;
jsonWriter.beginObject();
String str = qLa.c;
pye.c(jsonWriter, 439);
String str2 = qLa.c;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
String str3 = qLa.a;
pye.c(jsonWriter, 533);
String str4 = qLa.a;
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
String str5 = qLa.b;
pye.c(jsonWriter, 277);
String str6 = qLa.b;
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;
}
QLa qLa = new QLa();
Gson gson = this.d;
InterfaceC15734iCu interfaceC15734iCu = this.e;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 133) {
if (e != 239) {
if (e != 478) {
jsonReader.skipValue();
} else if (z) {
qLa.c = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
qLa.c = null;
jsonReader.nextNull();
}
} else if (z) {
qLa.a = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
qLa.a = null;
jsonReader.nextNull();
}
} else if (z) {
qLa.b = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
qLa.b = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return qLa;
}
}