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

78 lines
2.5 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.hIb, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C15627hIb extends TypeAdapter implements HJa {
private Gson a;
private InterfaceC15734iCu d;
private PYE e;
public C15627hIb(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.a = gson;
this.d = 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;
}
C15152gig c15152gig = (C15152gig) obj;
Gson gson = this.a;
PYE pye = this.e;
jsonWriter.beginObject();
String str = c15152gig.a;
pye.c(jsonWriter, 662);
String str2 = c15152gig.a;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
String str3 = c15152gig.b;
pye.c(jsonWriter, 367);
String str4 = c15152gig.b;
DTh.b(gson, String.class, str4).write(jsonWriter, str4);
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;
}
C15152gig c15152gig = new C15152gig();
Gson gson = this.a;
InterfaceC15734iCu interfaceC15734iCu = this.d;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 48) {
if (e != 52) {
jsonReader.skipValue();
} else if (z) {
c15152gig.a = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
c15152gig.a = null;
jsonReader.nextNull();
}
} else if (z) {
c15152gig.b = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
c15152gig.b = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return c15152gig;
}
}