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

104 lines
3.6 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.Tq, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1011Tq extends TypeAdapter implements HJa {
private PYE a;
private InterfaceC15734iCu b;
private Gson e;
public C1011Tq(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.e = gson;
this.b = interfaceC15734iCu;
this.a = pye;
}
@Override // com.google.gson.TypeAdapter
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
if (obj == null) {
jsonWriter.nullValue();
return;
}
C1002Tk c1002Tk = (C1002Tk) obj;
Gson gson = this.e;
PYE pye = this.a;
jsonWriter.beginObject();
if (c1002Tk != c1002Tk.e) {
pye.c(jsonWriter, 464);
String str = c1002Tk.e;
DTh.b(gson, String.class, str).write(jsonWriter, str);
}
if (c1002Tk != c1002Tk.b) {
pye.c(jsonWriter, 543);
C1001Tj c1001Tj = c1002Tk.b;
DTh.b(gson, C1001Tj.class, c1001Tj).write(jsonWriter, c1001Tj);
}
if (c1002Tk != c1002Tk.c) {
pye.c(jsonWriter, 526);
String str2 = c1002Tk.c;
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
}
if (c1002Tk != c1002Tk.d) {
pye.c(jsonWriter, 433);
TK tk = c1002Tk.d;
DTh.b(gson, TK.class, tk).write(jsonWriter, tk);
}
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;
}
C1002Tk c1002Tk = new C1002Tk();
Gson gson = this.e;
InterfaceC15734iCu interfaceC15734iCu = this.b;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 26) {
if (e != 415) {
if (e != 484) {
if (e != 515) {
jsonReader.skipValue();
} else if (z) {
c1002Tk.d = (TK) gson.getAdapter(TK.class).read2(jsonReader);
} else {
c1002Tk.d = null;
jsonReader.nextNull();
}
} else if (z) {
c1002Tk.c = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
c1002Tk.c = null;
jsonReader.nextNull();
}
} else if (z) {
c1002Tk.b = (C1001Tj) gson.getAdapter(C1001Tj.class).read2(jsonReader);
} else {
c1002Tk.b = null;
jsonReader.nextNull();
}
} else if (z) {
c1002Tk.e = (String) gson.getAdapter(String.class).read2(jsonReader);
} else {
c1002Tk.e = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return c1002Tk;
}
}