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

69 lines
2.1 KiB
Java
Raw 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;
import java.util.List;
/* loaded from: classes.dex */
public final class maY extends TypeAdapter implements HJa {
private PYE a;
private Gson d;
private InterfaceC15734iCu e;
public maY(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.d = gson;
this.e = interfaceC15734iCu;
this.a = pye;
}
@Override // com.google.gson.TypeAdapter
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
if (obj == null) {
jsonWriter.nullValue();
return;
}
C13451faa c13451faa = (C13451faa) obj;
Gson gson = this.d;
PYE pye = this.a;
jsonWriter.beginObject();
if (c13451faa != c13451faa.c) {
pye.c(jsonWriter, 340);
Qyu qyu = new Qyu();
List<TLw> list = c13451faa.c;
DTh.a(gson, qyu, list).write(jsonWriter, list);
}
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;
}
C13451faa c13451faa = new C13451faa();
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 != 257) {
jsonReader.skipValue();
} else if (z) {
c13451faa.c = (List) gson.getAdapter(new Qyu()).read2(jsonReader);
} else {
c13451faa.c = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return c13451faa;
}
}