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

81 lines
2.8 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 org.jmrtd.cbeff.ISO781611;
/* renamed from: o.gsv, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C15526gsv extends TypeAdapter implements HJa {
private Gson b;
private InterfaceC15734iCu c;
private PYE e;
public C15526gsv(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;
}
C15522gsr c15522gsr = (C15522gsr) obj;
Gson gson = this.b;
PYE pye = this.e;
jsonWriter.beginObject();
C15520gsp c15520gsp = c15522gsr.date;
pye.c(jsonWriter, 44);
C15520gsp c15520gsp2 = c15522gsr.date;
DTh.b(gson, C15520gsp.class, c15520gsp2).write(jsonWriter, c15520gsp2);
C15521gsq c15521gsq = c15522gsr.time;
pye.c(jsonWriter, ISO781611.BIOMETRIC_SUBTYPE_TAG);
C15521gsq c15521gsq2 = c15522gsr.time;
DTh.b(gson, C15521gsq.class, c15521gsq2).write(jsonWriter, c15521gsq2);
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;
}
C15522gsr c15522gsr = new C15522gsr();
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 != 65) {
if (e != 501) {
jsonReader.peek();
JsonToken jsonToken = JsonToken.NULL;
jsonReader.skipValue();
} else if (z) {
c15522gsr.time = (C15521gsq) gson.getAdapter(C15521gsq.class).read2(jsonReader);
} else {
c15522gsr.time = null;
jsonReader.nextNull();
}
} else if (z) {
c15522gsr.date = (C15520gsp) gson.getAdapter(C15520gsp.class).read2(jsonReader);
} else {
c15522gsr.date = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return c15522gsr;
}
}