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

81 lines
2.6 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.dnZ, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C9637dnZ extends TypeAdapter implements HJa {
private Gson b;
private InterfaceC15734iCu c;
private PYE e;
public C9637dnZ(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.b = 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;
}
C9636dnY c9636dnY = (C9636dnY) obj;
Gson gson = this.b;
PYE pye = this.e;
jsonWriter.beginObject();
if (c9636dnY != c9636dnY.a) {
pye.c(jsonWriter, 652);
C9686doa c9686doa = new C9686doa();
List<C9632dnU> list = c9636dnY.a;
DTh.a(gson, c9686doa, list).write(jsonWriter, list);
}
Boolean bool = c9636dnY.b;
pye.c(jsonWriter, 209);
Boolean bool2 = c9636dnY.b;
DTh.b(gson, Boolean.class, bool2).write(jsonWriter, bool2);
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;
}
C9636dnY c9636dnY = new C9636dnY();
Gson gson = this.b;
InterfaceC15734iCu interfaceC15734iCu = this.c;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 205) {
if (e != 226) {
jsonReader.skipValue();
} else if (z) {
c9636dnY.b = (Boolean) gson.getAdapter(Boolean.class).read2(jsonReader);
} else {
c9636dnY.b = null;
jsonReader.nextNull();
}
} else if (z) {
c9636dnY.a = (List) gson.getAdapter(new C9686doa()).read2(jsonReader);
} else {
c9636dnY.a = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return c9636dnY;
}
}