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

77 lines
2.5 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 jcN extends TypeAdapter implements HJa {
private Gson a;
private PYE c;
private InterfaceC15734iCu e;
public jcN(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;
}
C14264fpt c14264fpt = (C14264fpt) obj;
Gson gson = this.a;
PYE pye = this.c;
jsonWriter.beginObject();
String str = c14264fpt.a;
pye.c(jsonWriter, 569);
String str2 = c14264fpt.a;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
String str3 = c14264fpt.e;
pye.c(jsonWriter, 664);
String str4 = c14264fpt.e;
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;
}
C14264fpt c14264fpt = new C14264fpt();
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 != 464) {
if (e != 565) {
jsonReader.skipValue();
} else if (z) {
c14264fpt.e = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
c14264fpt.e = null;
jsonReader.nextNull();
}
} else if (z) {
c14264fpt.a = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
c14264fpt.a = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return c14264fpt;
}
}