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

89 lines
2.9 KiB
Java

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;
/* renamed from: o.Zqv, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1287Zqv extends TypeAdapter implements HJa {
private InterfaceC15734iCu a;
private PYE b;
private Gson e;
public C1287Zqv(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.e = 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;
}
BgM bgM = (BgM) obj;
Gson gson = this.e;
PYE pye = this.b;
jsonWriter.beginObject();
Boolean bool = bgM.a;
pye.c(jsonWriter, 572);
Boolean bool2 = bgM.a;
DTh.b(gson, Boolean.class, bool2).write(jsonWriter, bool2);
Integer num = bgM.c;
pye.c(jsonWriter, 77);
Integer num2 = bgM.c;
DTh.b(gson, Integer.class, num2).write(jsonWriter, num2);
Integer num3 = bgM.e;
pye.c(jsonWriter, 476);
Integer num4 = bgM.e;
DTh.b(gson, Integer.class, num4).write(jsonWriter, num4);
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;
}
BgM bgM = new BgM();
Gson gson = this.e;
InterfaceC15734iCu interfaceC15734iCu = this.a;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 421) {
if (e != 500) {
if (e != 656) {
jsonReader.skipValue();
} else if (z) {
bgM.e = (Integer) gson.getAdapter(Integer.class).read2(jsonReader);
} else {
bgM.e = null;
jsonReader.nextNull();
}
} else if (z) {
bgM.a = (Boolean) gson.getAdapter(Boolean.class).read2(jsonReader);
} else {
bgM.a = null;
jsonReader.nextNull();
}
} else if (z) {
bgM.c = (Integer) gson.getAdapter(Integer.class).read2(jsonReader);
} else {
bgM.c = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return bgM;
}
}