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

77 lines
2.4 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;
/* loaded from: classes.dex */
public final class JCd extends TypeAdapter implements HJa {
private InterfaceC15734iCu c;
private Gson d;
private PYE e;
public JCd(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.d = gson;
this.c = interfaceC15734iCu;
this.e = pye;
}
@Override // com.google.gson.TypeAdapter
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
if (obj == null) {
jsonWriter.nullValue();
return;
}
FHJ fhj = (FHJ) obj;
Gson gson = this.d;
PYE pye = this.e;
jsonWriter.beginObject();
String str = fhj.c;
pye.c(jsonWriter, 439);
String str2 = fhj.c;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
String str3 = fhj.d;
pye.c(jsonWriter, 533);
String str4 = fhj.d;
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
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;
}
FHJ fhj = new FHJ();
Gson gson = this.d;
InterfaceC15734iCu interfaceC15734iCu = this.c;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 239) {
if (e != 478) {
jsonReader.skipValue();
} else if (z) {
fhj.c = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
fhj.c = null;
jsonReader.nextNull();
}
} else if (z) {
fhj.d = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
fhj.d = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return fhj;
}
}