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

77 lines
2.4 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;
/* loaded from: classes.dex */
public final class IN extends TypeAdapter implements HJa {
private InterfaceC15734iCu a;
private PYE b;
private Gson c;
public IN(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.c = gson;
this.a = interfaceC15734iCu;
this.b = pye;
}
@Override // com.google.gson.TypeAdapter
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
if (obj == null) {
jsonWriter.nullValue();
return;
}
IM im = (IM) obj;
Gson gson = this.c;
PYE pye = this.b;
jsonWriter.beginObject();
IH ih = im.b;
pye.c(jsonWriter, 435);
IH ih2 = im.b;
DTh.b(gson, IH.class, ih2).write(jsonWriter, ih2);
Boolean bool = im.e;
pye.c(jsonWriter, 601);
Boolean bool2 = im.e;
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;
}
IM im = new IM();
Gson gson = this.c;
InterfaceC15734iCu interfaceC15734iCu = this.a;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 574) {
if (e != 677) {
jsonReader.skipValue();
} else if (z) {
im.e = (Boolean) gson.getAdapter(Boolean.class).read2(jsonReader);
} else {
im.e = null;
jsonReader.nextNull();
}
} else if (z) {
im.b = (IH) gson.getAdapter(IH.class).read2(jsonReader);
} else {
im.b = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return im;
}
}