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

92 lines
3.2 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;
import java.util.List;
/* renamed from: o.doc, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C9688doc extends TypeAdapter implements HJa {
private Gson a;
private InterfaceC15734iCu b;
private PYE e;
public C9688doc(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.a = gson;
this.b = 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;
}
C9697dol c9697dol = (C9697dol) obj;
Gson gson = this.a;
PYE pye = this.e;
jsonWriter.beginObject();
C9696dok c9696dok = c9697dol.a;
pye.c(jsonWriter, 52);
C9696dok c9696dok2 = c9697dol.a;
DTh.b(gson, C9696dok.class, c9696dok2).write(jsonWriter, c9696dok2);
if (c9697dol != c9697dol.d) {
pye.c(jsonWriter, 466);
C9693doh c9693doh = new C9693doh();
List<String> list = c9697dol.d;
DTh.a(gson, c9693doh, list).write(jsonWriter, list);
}
C9636dnY c9636dnY = c9697dol.c;
pye.c(jsonWriter, 54);
C9636dnY c9636dnY2 = c9697dol.c;
DTh.b(gson, C9636dnY.class, c9636dnY2).write(jsonWriter, c9636dnY2);
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;
}
C9697dol c9697dol = new C9697dol();
Gson gson = this.a;
InterfaceC15734iCu interfaceC15734iCu = this.b;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 107) {
if (e != 332) {
if (e != 670) {
jsonReader.skipValue();
} else if (z) {
c9697dol.d = (List) gson.getAdapter(new C9693doh()).read2(jsonReader);
} else {
c9697dol.d = null;
jsonReader.nextNull();
}
} else if (z) {
c9697dol.c = (C9636dnY) gson.getAdapter(C9636dnY.class).read2(jsonReader);
} else {
c9697dol.c = null;
jsonReader.nextNull();
}
} else if (z) {
c9697dol.a = (C9696dok) gson.getAdapter(C9696dok.class).read2(jsonReader);
} else {
c9697dol.a = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return c9697dol;
}
}